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