public void UpdateCKAN() { ResetProgress(); ShowWaitDialog(false); SwitchEnabledState(); ClearLog(); tabController.RenameTab("WaitTabPage", "Updating CKAN"); SetDescription("Upgrading CKAN to " + AutoUpdate.Instance.LatestVersion); log.Info("Start ckan update"); BackgroundWorker updateWorker = new BackgroundWorker(); updateWorker.DoWork += (sender, args) => AutoUpdate.Instance.StartUpdateProcess(true, GUI.user); updateWorker.RunWorkerAsync(); }
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(); }