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