Пример #1
0
 public override void Start(DateTime referenceStartTime)
 {
     _referenceStartTime = referenceStartTime;
     Clean();
     _notifier        = new KeyboardGlobalHook();
     _notifier.KeyUp += OnKeyUp;
 }
Пример #2
0
        private void Clean()
        {
            if (_notifier == null)
            {
                return;
            }

            _notifier.KeyUp -= OnKeyUp;

            _notifier.Dispose();
            _notifier = null;
        }