Exemple #1
0
 private void favSessCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     if (favSessCheckBox.Checked == true)
     {
         foreach (HotkeyController.HotKeyId hkid in comboDictionary.Keys)
         {
             if (hkc.isSessionHotkeyEnabled(hkid))
             {
                 hkc.RegisterHotkey(parentWindow, hkid);
             }
         }
     }
     else
     {
         foreach (HotkeyController.HotKeyId hkid in comboDictionary.Keys)
         {
             hkc.UnregisterHotKey(parentWindow, hkid);
         }
     }
     hkc.setFavouriteSessionHotkeysEnabled(favSessCheckBox.Checked);
 }