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(); } }
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(); } }