Esempio n. 1
0
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     Title += " [Saving ...]";
     _keyDisplayerForm.Close();
     SaveSettingsToFile(Properties.Settings.Default);
     if (RTSSHandler.IsRunning)
     {
         RTSSHandler.KillRTSS();
     }
 }
Esempio n. 2
0
        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);
        }