/// <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); } }
public UpdateNotifyForm(UpdateAvailableEventArgs args) : this() { m_args = args; }
private void UpdateNotifyForm_UpdateAvailable(object sender, UpdateAvailableEventArgs e) { m_args = e; UpdateInformation(); }