public bool RegistKeyEvent(KeyEventProc proc) { if (EventList.Exists(x => x.Name == proc.Name)) { return(false); } EventList.Add(proc); return(true); }
public bool ChangeShortCut(string name, int Key, int Modifier) { if (EventList.Exists(x => x.SubKey == Key && x.ModifierKey == Modifier)) return false; KeyEventProc kep = EventList.Find(x => x.Name == name); if (kep == null) return false; kep.ModifierKey = Modifier; kep.SubKey = Key; return true; }
public bool RemoveKeyEvent(KeyEventProc proc) { return(EventList.Remove(proc)); }
public bool RegistKeyEvent(KeyEventProc proc) { if (EventList.Exists(x => x.Name == proc.Name)) return false; EventList.Add(proc); return true; }