예제 #1
0
        //Fires when an update check has finished.
        private void UpdateCheckReturn(Updater.UpdateCheckResult result)
        {
            if (this.InvokeRequired)
            {
                Debug.WriteLine("Invoking update check result on update form.");
                Updater.UpdateCheckFinishedHandler updateFormInvoker = new Updater.UpdateCheckFinishedHandler(UpdateCheckReturn);
                this.Invoke(updateFormInvoker, result);
            }
            Program.updateHelper.updater.UpdateCheckFinished -= UpdateCheckReturn;
            proBar.Style      = ProgressBarStyle.Continuous;
            lblRemoteVer.Text = "Remote version: " + result.LatestVersion.ToString();

            DownloadChangeLog(result.ChangeLogUrl);

            if (result.UpdateAvailable)
            {
                btnUpdate.Enabled = true;
                updateFileListUrl = result.UpdateFileListUrl;
            }
        }
예제 #2
0
        //Fires when an update check has finished.
        private void UpdateCheckReturn(Updater.UpdateCheckResult result)
        {
            if (this.InvokeRequired)
            {
                Debug.WriteLine("Invoking update check result on update form.");
                Updater.UpdateCheckFinishedHandler updateFormInvoker = new Updater.UpdateCheckFinishedHandler(UpdateCheckReturn);
                this.Invoke(updateFormInvoker, result);
            }
            Program.updateHelper.updater.UpdateCheckFinished -= UpdateCheckReturn;
            proBar.Style = ProgressBarStyle.Continuous;
            lblRemoteVer.Text = "Remote version: " + result.LatestVersion.ToString();

            DownloadChangeLog(result.ChangeLogUrl);

            if (result.UpdateAvailable)
            {
                btnUpdate.Enabled = true;
                updateFileListUrl = result.UpdateFileListUrl;
            }
        }