Example #1
0
 /// <summary>
 /// Notify subscribers about an update of the binaries.
 /// </summary>
 /// <remarks>Invoked on the UI thread.</remarks>
 private static void OnUpdateAvailable(string updateUrl, string updateMessage,
                                       Version newestVersion, Version currentVersion, bool canAutoInstall,
                                       string installArgs, string installUrl)
 {
     if (UpdateAvailable != null)
     {
         UpdateAvailableEventArgs e = new UpdateAvailableEventArgs();
         e.CurrentVersion       = currentVersion;
         e.NewestVersion        = newestVersion;
         e.UpdateMessage        = updateMessage;
         e.UpdateUrl            = updateUrl;
         e.CanAutoInstall       = canAutoInstall;
         e.AutoInstallUrl       = installUrl;
         e.AutoInstallArguments = installArgs;
         UpdateAvailable(null, e);
     }
 }
Example #2
0
 public UpdateNotifyForm(UpdateAvailableEventArgs args)
     : this()
 {
     m_args = args;
 }
Example #3
0
 private void UpdateNotifyForm_UpdateAvailable(object sender, UpdateAvailableEventArgs e)
 {
     m_args = e;
     UpdateInformation();
 }