/// <summary> /// Stay on log page and reset StatusProgress /// </summary> /// <param name="statusMsg">Message for the lower status bar</param> /// <param name="logMsg">Message to display on WaitDialog-Log (not the real log!)</param> /// <param name="description">Message displayed above the DialogProgress bar</param> public void FailWaitDialog(string statusMsg, string logMsg, string description, bool success) { Util.Invoke(statusStrip1, () => { StatusProgress.Visible = false; AddStatusMessage(statusMsg); }); Util.Invoke(WaitTabPage, () => { RecreateDialogs(); Wait.Finish(false); SetProgress(100); }); Wait.AddLogMessage(logMsg); Wait.SetDescription(description); }
public void UpdateCKAN() { ResetProgress(); ShowWaitDialog(false); SwitchEnabledState(); Wait.ClearLog(); tabController.RenameTab("WaitTabPage", Properties.Resources.MainUpgradingWaitTitle); Wait.SetDescription(string.Format(Properties.Resources.MainUpgradingTo, AutoUpdate.Instance.latestUpdate.Version)); log.Info("Start ckan update"); BackgroundWorker updateWorker = new BackgroundWorker(); updateWorker.DoWork += (sender, args) => AutoUpdate.Instance.StartUpdateProcess(true, currentUser); updateWorker.RunWorkerAsync(); }
public void UpdateRepo() { tabController.RenameTab("WaitTabPage", Properties.Resources.MainRepoWaitTitle); try { // The argument will be accessed with (bool)e.Argument in private UpdateRepo() m_UpdateRepoWorker.RunWorkerAsync(); } catch { } Util.Invoke(this, SwitchEnabledState); Wait.SetDescription(Properties.Resources.MainRepoContacting); Wait.ClearLog(); ShowWaitDialog(); }