Пример #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);
     }
 }
Пример #2
0
 void backgroundWorkerCheckUpdate_DoWork(object sender, DoWorkEventArgs e)
 {
     UpdateAvailable.updateCheckDoneEventArgs doneArgs = UpdateAvailable.checkNow(updateUrl, downloadUrl, currentlyInstalledVersion, userAgentInRequests, rootXmlElement);
     e.Result = doneArgs;
 }