Beispiel #1
0
 //Fired when the update download is finished.
 private void DownloadUpdateReturn(Updater.DownloadUpdateResult result)
 {
     updater.DownloadUpdateFinished -= DownloadUpdateReturn;
     if (result.Success)
     {
         Program.updateRunFileList = result.RunFiles;
         Program.updateRestart     = true;
         Program.updateLoopRunning = false;
     }
     else
     {
         IconManager.ShowBalloonPopup(Application.ProductName, result.Message, ToolTipIcon.Info);
     }
 }
Beispiel #2
0
 //Fired when the update download is finished.
 private void DownloadUpdateReturn(Updater.DownloadUpdateResult result)
 {
     if (this.InvokeRequired)
     {
         Debug.WriteLine("Invoking download update result on update form.");
         Updater.DownloadUpdateFinishedHandler updateFormInvoker = new Updater.DownloadUpdateFinishedHandler(DownloadUpdateReturn);
         this.Invoke(updateFormInvoker, result);
     }
     Program.updateHelper.updater.DownloadUpdateFinished -= DownloadUpdateReturn;
     proBar.Style      = ProgressBarStyle.Continuous;
     btnUpdate.Enabled = true;
     if (result.Success)
     {
         Program.updateRunFileList = result.RunFiles;
         Program.updateRestart     = true;
         Program.updateLoopRunning = false;
     }
     else
     {
         MessageBox.Show(result.Message, Application.ProductName);
     }
 }