public override void Start(DateTime referenceStartTime) { _referenceStartTime = referenceStartTime; Clean(); _notifier = new KeyboardGlobalHook(); _notifier.KeyUp += OnKeyUp; }
private void Clean() { if (_notifier == null) { return; } _notifier.KeyUp -= OnKeyUp; _notifier.Dispose(); _notifier = null; }