Пример #1
0
 private void mnuToolsUpdate_Click(object sender, EventArgs e)
 {
     // Only a single instance of the updater can be open, so either find the current instance and focus on it, or create a new one.
     if (_frmUpdate == null)
     {
         _frmUpdate = new frmUpdate();
         _frmUpdate.Show();
     }
     else
     {
         _frmUpdate.Focus();
     }
 }
Пример #2
0
 private void mnuToolsUpdate_Click(object sender, EventArgs e)
 {
     // Only a single instance of the updater can be open, so either find the current instance and focus on it, or create a new one.
     if (_frmUpdate == null)
     {
         _frmUpdate             = new frmUpdate();
         _frmUpdate.FormClosed += ResetFrmUpdate;
         _frmUpdate.Show();
     }
     // Silent updater is running, so make it visible
     else if (_frmUpdate.SilentMode)
     {
         _frmUpdate.SilentMode = false;
         _frmUpdate.Show();
     }
     else
     {
         _frmUpdate.Focus();
     }
 }
Пример #3
0
		private void mnuToolsUpdate_Click(object sender, EventArgs e)
		{
			// Only a single instance of the updater can be open, so either find the current instance and focus on it, or create a new one.
			if (_frmUpdate == null)
			{
				frmUpdate frmUpdate = new frmUpdate();
				_frmUpdate = frmUpdate;
				_frmUpdate.Show();
			}
			else
			{
				_frmUpdate.Focus();
			}
		}