예제 #1
0
 /// <summary>
 /// Происходит перезагрузка элементов и синхронизация с базой данных
 /// </summary>
 protected void ReloadElements()
 {
     if (animatedThreadWorker == null)
     {
         animatedThreadWorker               = new AnimatedThreadWorker(BackgroundReload, this);
         animatedThreadWorker.State         = "Reloading Aircraft General Data";
         animatedThreadWorker.WorkFinished += animatedThreadWorker_WorkFinished;
         dispatcheredMultitabControl.SetEnabledToAllEntityes(false);
         animatedThreadWorker.StartThread();
     }
 }
예제 #2
0
 /// <summary>
 /// Происходит перезагрузка элементов и синхронизация с базой данных
 /// </summary>
 protected virtual void ReloadElements()
 {
     if (animatedThreadWorker == null)
     {
         animatedThreadWorker               = new AnimatedThreadWorker(BackgroundDirectiveSourceReload, this);
         animatedThreadWorker.State         = "Reloading work packages";
         animatedThreadWorker.WorkFinished += animatedThreadWorker_WorkFinished;
         dispatcheredMultitabControl.SetEnabledToAllEntityes(false);
         animatedThreadWorker.StartThread();
     }
 }
예제 #3
0
        private void UpdateElements(bool reloadOperator)
        {
            if (reloadOperator)
            {
                currentOperator.Reloaded -= currentOperator_Reloaded;

                dispatcheredMultitabControl.SetEnabledToAllEntityes(false);
                animatedThreadWorker               = new AnimatedThreadWorker(BackgroundReloadAircrafts, this);
                animatedThreadWorker.State         = "Reciving data";
                animatedThreadWorker.WorkFinished += animatedThreadWorker_WorkFinished;
                animatedThreadWorker.StartThread();
            }
            else
            {
                FinishedUpdateAircrafts();
            }
        }
예제 #4
0
 private void control_BackgroundWorkStart(object sender, EventArgs e)
 {
     dispatcheredMultitabControl.SetEnabledToAllEntityes(false);
 }