src/Misc/EFTools/EntityDesign/UI/Views/Dialogs/NewFunctionImportDialog.cs
// <summary>
//     Launch background process to retrieve columns schema info from database.
// </summary>
Launch background process to retrieve columns schema info from database.
Launch background process to retrieve columns schema info from database .
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
        private void LaunchBackgroundProcessToRetrieveColumnsSchema()
        {
            if (CurrentProject != null
                && ConnectionString != null
                && Function != null)
            {
                _isWorkerRunning = true;
                SetDoWorkState(true);
                var bw = new BackgroundWorker();
                bw.WorkerReportsProgress = false;
                bw.WorkerSupportsCancellation = false;
                bw.DoWork += OnDoWork;
                bw.RunWorkerCompleted += OnWorkCompleted;
                bw.RunWorkerAsync(Function);
            }
        }
[ SuppressMessage ( " " , " " ) ] private void LaunchBackgroundProcessToRetrieveColumnsSchema ( ) { if ( CurrentProject != null && ConnectionString != null && Function != null ) { _isWorkerRunning = true ; SetDoWorkState ( true ) ; var bw = new BackgroundWorker ( ) ; bw . WorkerReportsProgress = false ; bw . WorkerSupportsCancellation = false ; bw . DoWork += OnDoWork ; bw . RunWorkerCompleted += OnWorkCompleted ; bw . RunWorkerAsync ( Function ) ; } }
Launch background process to retrieve columns schema info from database.
Launch background process to retrieve columns schema info from database .
// update UI // execute