示例#1
0
 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();
 }
示例#2
0
		private void CheckForUpdates()
		{
			Controller.ShadeMainForm();
			var form = new Slyce.Common.Updates.frmUpdate();
			form.ShowDialog(this);
			Controller.UnshadeMainForm();
		}
示例#3
0
		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);
			}
		}