Example #1
0
 public void PerformHotKeyUpdate()
 {
     try
     {
         UnregisterHotKeys();
         RegisterHotKeys();
         _lastValidHotkeys = HotKeys.Clone();
     }
     catch (Exception)
     {
         MessageBox.Show(Properties.Resources.Settings_InvalidHotkeys);
         UnregisterHotKeys();
         HotKeys = _lastValidHotkeys;
     }
 }
Example #2
0
 public HotKeyViewModel(KeyManager manager, AppSettings settings)
 {
     KeyManager        = manager;
     _settings         = settings;
     _lastValidHotkeys = HotKeys.Clone();
 }