protected virtual void Dispose(bool disposing) { if (!IsDisposed) { _globalKeyboardHook.Dispose(); _winEvent.Dispose(); IsDisposed = true; } }