예제 #1
0
        private async void CheckForApplicationUpdate()
        {
            var updater = new ApplicationUpdater(
                "ProjectDependencyBrowser.msi",
                GetType().Assembly,
                "http://rsuter.com/Projects/ProjectDependencyBrowser/updates.xml");

            await updater.CheckForUpdate(this);
        }
예제 #2
0
        private async void CheckForApplicationUpdate()
        {
            var updater = new ApplicationUpdater(
                "NSwagStudio.msi",
                GetType().Assembly,
                "http://rsuter.com/Projects/NSwagStudio/updates.php");

            await updater.CheckForUpdate(this);
        }
예제 #3
0
        /// <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 {
            }
        }
예제 #4
0
 /// <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);
     }
 }
예제 #5
0
 private async void CheckForApplicationUpdate()
 {
     var updater = new ApplicationUpdater("VisualJsonEditor.msi", GetType().Assembly,
                                          "http://rsuter.com/Projects/VisualJsonEditor/updates.php");
     await updater.CheckForUpdate(this);
 }