Esempio n. 1
0
 void backgroundWorkerCheckUpdate_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     UpdateAvailable.updateCheckDoneEventArgs doneArgs = e.Result as UpdateAvailable.updateCheckDoneEventArgs;
     if (doneArgs.updateFound)
     {
         UpdateAvailable myUpdateCheck = new UpdateAvailable(doneArgs.toBeIgnoredVersion, doneArgs.title, doneArgs.text);
         myUpdateCheck.updateCheckDone += new UpdateAvailable.updateCheckDoneEventHandler(myUpdateCheck_updateCheckDone);
     }
 }
Esempio n. 2
0
 void myUpdateCheck_updateCheckDone(object sender, UpdateAvailable.updateCheckDoneEventArgs e)
 {
     if (!e.tryNextTimeAgain)
     {
         Properties.Settings.Default.IgnoredNewVersion = e.toBeIgnoredVersion;
     }
     else if (e.closeApp)
     {
         App.Current.Shutdown();
     }
 }
Esempio n. 3
0
 void backgroundWorkerCheckUpdate_DoWork(object sender, DoWorkEventArgs e)
 {
     UpdateAvailable.updateCheckDoneEventArgs doneArgs = UpdateAvailable.checkNow(updateUrl, downloadUrl, currentlyInstalledVersion, userAgentInRequests, rootXmlElement);
     e.Result = doneArgs;
 }