public void StartBackgroundCheckForUpdates() { if (!_appInterface.GetCheckUpdateSettings()) { return; } BackgroundWorker bg = new BackgroundWorker(); bg.DoWork += backgroundCheck_DoWork; bg.RunWorkerCompleted += backgroundCheck_Completed; bg.RunWorkerAsync(); }
public NewRelease(YAppInterface appInterface, YAppReleaseManager appReleaseManager) { InitializeComponent(); _appInterface = appInterface; _appReleaseManager = appReleaseManager; checkUpdate.Checked = _appInterface.GetCheckUpdateSettings(); this.checkUpdate.CheckedChanged += new System.EventHandler(this.checkUpdate_CheckedChanged); }