Пример #1
0
        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();
        }
Пример #2
0
        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();
        }