/// <inheritdoc /> protected override void DispatchInternal(IHotkeyVisitor hotkeyVisitor) { if (hotkeyVisitor is IKeyboardHotkeyVisitor keyboardHotkeyVisitor) { keyboardHotkeyVisitor.Visit(this); } }
/// <inheritdoc /> protected override void DispatchInternal(IHotkeyVisitor hotkeyVisitor) { if (hotkeyVisitor is IMouseHookHotkeyVisitor mouseHookHotkeyVisitor) { mouseHookHotkeyVisitor.Visit(this); } }
public void Dispatch(IHotkeyVisitor visitor) { // Ignore }
protected abstract void DispatchInternal(IHotkeyVisitor hotkeyVisitor);
public void Dispatch(IHotkeyVisitor hotkeyVisitor) { logger.DebugExt($"Hotkey dispatched: {this.HumanReadableAction}"); this.DispatchInternal(hotkeyVisitor); }
/// <inheritdoc /> protected override void DispatchInternal(IHotkeyVisitor hotkeyVisitor) { throw new NotImplementedException(); }
protected override void DispatchInternal(IHotkeyVisitor hotkeyVisitor) { this.Dispatched = true; }