예제 #1
0
        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);
            }
        }
예제 #2
0
 private void LeaveHotkeyControl(object sender, EventArgs e)
 {
     MainForm.RegisterHotkeys();
     _inHotkey = false;
 }
예제 #3
0
 void SettingsFormFormClosing(object sender, FormClosingEventArgs e)
 {
     MainForm.RegisterHotkeys();
 }