private void buttonCheckForUpdates_Click(object sender, EventArgs e) { Controller.Instance.ShadeMainForm(); Slyce.Common.Updates.frmUpdate form = new Slyce.Common.Updates.frmUpdate(Branding.ProductBranding.ToString()); form.ShowDialog(this); Controller.Instance.UnshadeMainForm(); }
private void CheckForUpdates() { Controller.ShadeMainForm(); var form = new Slyce.Common.Updates.frmUpdate(); form.ShowDialog(this); Controller.UnshadeMainForm(); }
private void backgroundWorkerUpdateChecker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (e.Error != null) { // Ensure that we get this reported to us. throw e.Error; } if (UpdatesExist) { if (InvokeRequired) { MethodInvoker mi = () => backgroundWorkerUpdateChecker_RunWorkerCompleted(sender, e); Invoke(mi); return; } var form = new Slyce.Common.Updates.frmUpdate(); form.ShowDialog(this); } }