BetterExplorer.MainWindow.CheckForUpdate C# (CSharp) Method

CheckForUpdate() private method

Updates the application if a new version is read
private CheckForUpdate ( bool ShowUpdateUI = true ) : void
ShowUpdateUI bool Will you show a MessageBox when it is already updating?
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!");
		}
MainWindow