protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { if (_hotkeyService != null) { _hotkeyService.Dispose(); } } _hotkeyService = null; _disposed = true; } }
public void RegisterHotkeys() { _hotkeyService = Hotkeys.Instance; PositionHotkeys = GetHotkeySettings(); RegisterPositionHotkeys(PositionHotkeys); }