private async void CheckForApplicationUpdate() { var updater = new ApplicationUpdater( "ProjectDependencyBrowser.msi", GetType().Assembly, "http://rsuter.com/Projects/ProjectDependencyBrowser/updates.xml"); await updater.CheckForUpdate(this); }
private async void CheckForApplicationUpdate() { var updater = new ApplicationUpdater( "NSwagStudio.msi", GetType().Assembly, "http://rsuter.com/Projects/NSwagStudio/updates.php"); await updater.CheckForUpdate(this); }
/// <summary> /// Checks for updates. /// </summary> /// <param name="owner">The owner.</param> public void Check(IWin32Window owner) { try { _owner = owner; ApplicationUpdater applicationUpdater = new ApplicationUpdater(); applicationUpdater.UpdateAvailable += new EventHandler <UpdatesAvailableEventArgs> (applicationUpdater_UpdateAvailable); applicationUpdater.Version = new Version(Application.ProductVersion); applicationUpdater.CheckForUpdate(CCNetConfig.Core.Util.UserSettings.UpdateSettings.UpdateCheckType); } catch { } }
/// <summary> /// Raises the <see cref="E:System.Windows.Forms.Form.Load"></see> event. /// </summary> /// <param name="e">An <see cref="T:System.EventArgs"></see> that contains the event data.</param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (Program.UpdateUrl != null) { au.CheckForUpdatesByUrl(Program.UpdateUrl); } else { au.CheckForUpdate(Program.UpdateCheckType); } }
private async void CheckForApplicationUpdate() { var updater = new ApplicationUpdater("VisualJsonEditor.msi", GetType().Assembly, "http://rsuter.com/Projects/VisualJsonEditor/updates.php"); await updater.CheckForUpdate(this); }