//프로그램 종료 전 public SmartUpdater(ISmartUpdatable applicationInfo, UpdateWindow win) { type = 1; this.applicationInfo = applicationInfo; this.win = win; this.bgWorker = new BackgroundWorker(); this.bgWorker.DoWork += new DoWorkEventHandler(bgWorker_DoWork); this.bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted); }
public CheckBeforeClosing(ISmartUpdatable applicationInfo) { this.applicationInfo = applicationInfo; IsAvailableUpdate = false; this.bgWorker = new BackgroundWorker(); this.bgWorker.DoWork += new DoWorkEventHandler(bgWorker_DoWork); this.bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted); }
public CheckBeforeClosing(ISmartUpdatable applicationInfo) { this.applicationInfo = applicationInfo; IsAvailableUpdate = false; this.bgWorker = new BackgroundWorker(); this.bgWorker.DoWork += new DoWorkEventHandler(bgWorker_DoWork); this.bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted); }
//프로그램 종료 전 public SmartUpdater(ISmartUpdatable applicationInfo, UpdateWindow win) { type = 1; this.applicationInfo = applicationInfo; this.win = win; this.bgWorker = new BackgroundWorker(); this.bgWorker.DoWork += new DoWorkEventHandler(bgWorker_DoWork); this.bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted); }
//프로그램 정보 창 public SmartUpdater(ISmartUpdatable applicationInfo, SmartUpdaterForOrange uc_updater) { type = 0; this.applicationInfo = applicationInfo; this.uc_updater = uc_updater; this.bgWorker = new BackgroundWorker(); this.bgWorker.DoWork += new DoWorkEventHandler(bgWorker_DoWork); this.bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted); }
//프로그램 정보 창 public SmartUpdater(ISmartUpdatable applicationInfo, SmartUpdaterForOrange uc_updater) { type = 0; this.applicationInfo = applicationInfo; this.uc_updater = uc_updater; this.bgWorker = new BackgroundWorker(); this.bgWorker.DoWork += new DoWorkEventHandler(bgWorker_DoWork); this.bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted); }
private void bgWorker_DoWork(object sender, DoWorkEventArgs e) { ISmartUpdatable application = (ISmartUpdatable)e.Argument; if (!SmartUpdateXml.ExistsOnServer(application.UpdateXmlLocation)) { e.Cancel = true; } else { e.Result = SmartUpdateXml.Parse(application.UpdateXmlLocation, application.ApplicationID); } }
public void initSmartUpdate(ISmartUpdatable applicationInfo) { this.applicationInfo = applicationInfo; updater = new SmartUpdater(applicationInfo, this); if (updater != null) { updater.CheckUpdate(); } else { MessageBox.Show("init problem"); } }
public void initSmartUpdate(ISmartUpdatable applicationInfo, string cur_ver) { this.cur_ver = cur_ver; this.applicationInfo = applicationInfo; updater = new SmartUpdater(applicationInfo, this); current_ver.Text = cur_ver; if (updater != null) { updater.CheckUpdate(); } else { MessageBox.Show("init problem"); } }