private CheckForUpdate ( bool ShowUpdateUI = true ) : void | ||
ShowUpdateUI | bool | Will you show a |
return | void |
private void CheckForUpdate(bool ShowUpdateUI = true) {
this.UpdaterWorker = new BackgroundWorker();
this.UpdaterWorker.WorkerSupportsCancellation = true;
this.UpdaterWorker.WorkerReportsProgress = true;
this.UpdaterWorker.DoWork += new DoWorkEventHandler(UpdaterWorker_DoWork);
if (!this.UpdaterWorker.IsBusy)
this.UpdaterWorker.RunWorkerAsync();
else if (ShowUpdateUI)
MessageBox.Show("Update in progress! Please wait!");
}