Esempio n. 1
0
 private void Unsubscribe()
 {
     if (_mEvents == null)
     {
         return;
     }
     _mEvents.KeyDown  -= OnKeyDown;
     _mEvents.KeyUp    -= OnKeyUp;
     _mEvents.KeyPress -= OnKeyPress;
     _mEvents.Dispose();
 }
Esempio n. 2
0
 private void UnsubscribeEvents()
 {
     if (PlatformYardımcısı.MonodaÇalışıyor)
     {
         KeyDown -= OnKeyDown;
         KeyUp   -= OnKeyUp;
     }
     else
     {
         if (_keyboardHook != null)
         {
             _keyboardHook.KeyDown -= OnKeyDown;
             _keyboardHook.KeyUp   -= OnKeyUp;
             _keyboardHook.Dispose();
         }
         if (_mouseHook != null)
         {
             _mouseHook.MouseWheel -= OnMouseWheelMove;
             _mouseHook.Dispose();
         }
     }
 }