private void Settings_okayClick(object sender, EventArgs e) { if (CheckSettings()) { HotkeyControl.UnregisterHotkeys(); SaveSettings(); StoreFields(); MainForm.RegisterHotkeys(); // Make sure the current language & settings are reflected in the Main-context menu MainForm.Instance.UpdateUi(); DialogResult = DialogResult.OK; } else { tabcontrol.SelectTab(tab_output); } }
private void LeaveHotkeyControl(object sender, EventArgs e) { MainForm.RegisterHotkeys(); _inHotkey = false; }
void SettingsFormFormClosing(object sender, FormClosingEventArgs e) { MainForm.RegisterHotkeys(); }