private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (!e.Cancelled) { SmartUpdateXml updateXml = (SmartUpdateXml)e.Result; //string version = fvi.FileVersion; //업데이트 확인 if (updateXml != null && updateXml.IsNewerThan(applicationInfo.appId)) { if (type == 0) { uc_updater.SetVersionState(true, updateXml); } else if (type == 1) { win.SetVersionState(updateXml); } //업데이트 작업 //this.DownloadUpdate(updateXml); } else if (updateXml != null && updateXml.IsEqualsVer(applicationInfo.appId)) { //같을때 if (type == 0) { uc_updater.SetVersionState(false, updateXml); } } } }
private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (!e.Cancelled) { SmartUpdateXml updateXml = (SmartUpdateXml)e.Result; //업데이트 확인 if (updateXml != null && updateXml.IsNewerThan(this.applicationInfo.appId)) { //업데이트 작업 IsAvailableUpdate = true; this.updateXml = updateXml; } else if (updateXml != null && updateXml.IsEqualsVer(this.applicationInfo.appId)) { IsAvailableUpdate = false; } } }