Exemplo n.º 1
0
 public void UnregistAllHotkey()
 {
     foreach (var obj in RegistedHotKey)
     {
         HotkeyRegister.UnRegist(obj.Key);
     }
     RegistedHotKey.Clear();
     RegistedHotkeyAction.Clear();
 }
Exemplo 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);
     }
 }