Пример #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();
        }
 /// <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);
 }