예제 #1
0
        private void updateModifier()
        {
            hkc.setModifier((HotkeyModifier)modifierComboBox.SelectedItem);
            setModifierLabels();
            hkc.UnregisterAllHotKeys(parentWindow);
            hkc.registerAllEnabledHotkeys(parentWindow);
            currentModifierIndex = modifierComboBox.SelectedIndex;

            // Fire a refresh event
            hkc.refreshHotkeys();
        }
예제 #2
0
 public void Exit()
 {
     systrayIcon.Visible = false;
     optionsDialog.Close();
     aboutDialog.Close();
     sessionEditor.Close();
     hotKeyChooser.Close();
     synchronizeForm.Close();
     hkc.UnregisterAllHotKeys(this);
     SaveSize();
     Application.Exit();
 }
 /// <summary>
 /// Changing the state of the taskbar icon seems to unregister all the hotkeys
 /// so re-register them here
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void taskbarCheckBox_Click(object sender, EventArgs e)
 {
     hc.UnregisterAllHotKeys(parentWindow);
     hc.registerAllEnabledHotkeys(parentWindow);
 }