public static IHotkeyCollection Add(this IHotkeyCollection collection, IHotkeyHandler handler) { return(collection.Add(handler.Hotkey, handler.Handle)); }
public static IHotkeyCollection Remove(this IHotkeyCollection collection, ModifierKeys modifier, Key key) { return(collection.Remove(new Hotkey(modifier, key))); }
public static IHotkeyCollection Add(this IHotkeyCollection collection, ModifierKeys modifier, Key key, Action <Hotkey> handler) { return(collection.Add(new Hotkey(modifier, key), handler)); }