private void bgWorker_RunWorkerCompleted(object s, RunWorkerCompletedEventArgs e) { if (!e.Cancelled) { ApplicationUpdaterXmlHandler xmlUpdater = (ApplicationUpdaterXmlHandler)e.Result; if (xmlUpdater != null && xmlUpdater.AppIsNewer(this.applicationUpdaterInfo.ApplicationAssembly.GetName().Version)) { if (new ApplicationUpdaterAcceptForm(this.applicationUpdaterInfo, xmlUpdater).ShowDialog(this.applicationUpdaterInfo.ApplicationForm) == DialogResult.Yes) { this.DownloadUpdate(xmlUpdater); } } } }
private void bgWorkerCheckUpdate_RunWorkerCompleted(object s, RunWorkerCompletedEventArgs e) { if (!e.Cancelled) { ApplicationUpdaterXmlHandler checker = (ApplicationUpdaterXmlHandler)e.Result; if (checker != null && checker.AppIsNewer(this.applicationUpdaterInfo.ApplicationAssembly.GetName().Version)) { newUpdate = true; } else { newUpdate = false; } } }