Esempio n. 1
0
 public HotkeyModel GetRegistedHotkey(string hotkeyName)
 {
     if (RegistedHotKey.ContainsKey(hotkeyName))
     {
         return(RegistedHotKey[hotkeyName]);
     }
     return(null);
 }
Esempio n. 2
0
 public void UnregistHotkey(string hotkeyName)
 {
     if (RegistedHotKey.ContainsKey(hotkeyName))
     {
         RegistedHotKey.Remove(hotkeyName);
         HotkeyRegister.UnRegist(hotkeyName);
     }
     if (RegistedHotkeyAction.ContainsKey(hotkeyName))
     {
         RegistedHotkeyAction.Remove(hotkeyName);
     }
 }