private void Window_Closing(object sender, CancelEventArgs e) { Title += " [Saving ...]"; _keyDisplayerForm.Close(); SaveSettingsToFile(Properties.Settings.Default); if (RTSSHandler.IsRunning) { RTSSHandler.KillRTSS(); } }
private void WindowRadioButton_Checked(object sender, RoutedEventArgs e) { if (_isMouseEnabled) { DisableMouseHook(); _settings.MouseEnabled = true; } else { _settings.MouseEnabled = false; } if (_keyboardHook != null) { _keyboardHook.Dispose(); _keyboardHook = null; } _isRtssEnabled = false; RTSSHandler.KillRTSS(); EnableControls(true); }