/// <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(); } }
/// <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(); } }
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(); } }
private void control_BackgroundWorkStart(object sender, EventArgs e) { dispatcheredMultitabControl.SetEnabledToAllEntityes(false); }