Ejemplo n.º 1
0
 public HotkeyActionCollection(KeyboardHook hook) => Hook = hook ?? throw new ArgumentNullException(nameof(hook));
Ejemplo n.º 2
0
 internal void InvokePressed(KeyboardHook hook) => _keyPressed?.Invoke(this, new HotkeyPressedEventArgs(hook, this));
Ejemplo n.º 3
0
 public HotkeyActionCollection(KeyboardHook hook, params IHotkeyAction[] actions)
 {
     Hook    = hook ?? throw new ArgumentNullException(nameof(hook));
     Actions = actions?.ToImmutableArray() ?? throw new ArgumentNullException(nameof(actions));
 }