public MainWindowViewModel(ISettingsProvider settingsProvider, IMediaEngineFacade engine, IKeyInterpreter keyInterpreter, IMouseWheelInterpreter mouseWheelInterpreter) { _settingsProvider = settingsProvider; _engine = engine; _keyInterpreter = keyInterpreter; _mouseWheelInterpreter = mouseWheelInterpreter; _settingsProvider.SettingChanged += _settingsProvider_SettingChanged; ReadSettings(); Messenger.Default.Register <EventMessage>(this, OnEvent); Messenger.Default.Register <PropertyChangedMessageBase>(this, true, OnPropertyChanged); Messenger.Default.Register <CommandMessage>(this, OnCommand); }
private void ActivateStringKeyInterpreter() { if (_ski == null) _ski = new StringKeyInterpreter(this); if (_ski == _keyInterpreter) return; if (_keyInterpreter != null) _keyInterpreter.Deactivate(); _keyInterpreter = _ski; _keyInterpreter.Activate(); }
private void ActivateEmptyKeyInterpreter() { if (_eki == null) _eki = new EmptyKeyInterpreter(this); if (_eki == _keyInterpreter) return; if (_keyInterpreter != null) _keyInterpreter.Deactivate(); _keyInterpreter = _eki; _keyInterpreter.Activate(); }
void ActivateKeyInterpreter() { if (_ki == null) _ki = new KeyInterpreter(this); if (_ki == _keyInterpreter) return; if (_keyInterpreter != null) _keyInterpreter.Deactivate(); _keyInterpreter = _ki; _keyInterpreter.Activate(); }
private void ActivateKeyInterpreter() { if (_ki == null) { _ki = new KeyInterpreter(this); } if (_ki == _keyInterpreter) { return; } if (_keyInterpreter != null) { _keyInterpreter.Deactivate(); } _keyInterpreter = _ki; _keyInterpreter.Activate(); }
public EnterKeyViewModel(IKeyInterpreter keyInterpreter) { _keyInterpreter = keyInterpreter; _selectedKeyCombination = new KeyCombination(); }
private void ActivateStringKeyInterpreter() { if (stringKeyInterpreter == null) stringKeyInterpreter = new StringKeyInterpreter(this); if (stringKeyInterpreter == currentKeyInterpreter) return; if (currentKeyInterpreter != null) currentKeyInterpreter.Deactivate(); currentKeyInterpreter = stringKeyInterpreter; currentKeyInterpreter.Activate(); }
private void ActivateKeyInterpreter() { if (keyInterpreter == null) keyInterpreter = new KeyInterpreter(this); if (keyInterpreter == currentKeyInterpreter) return; if (currentKeyInterpreter != null) currentKeyInterpreter.Deactivate(); currentKeyInterpreter = keyInterpreter; currentKeyInterpreter.Activate(); }
private void ActivateEmptyKeyInterpreter() { if (emptyKeyInterpreter == null) emptyKeyInterpreter = new EmptyKeyInterpreter(this); if (emptyKeyInterpreter == currentKeyInterpreter) return; if (currentKeyInterpreter != null) currentKeyInterpreter.Deactivate(); currentKeyInterpreter = emptyKeyInterpreter; currentKeyInterpreter.Activate(); }
private void ActivateStringKeyInterpreter() { if (this._ski == null) { this._ski = new StringKeyInterpreter(this); } if (this._ski != this._keyInterpreter) { if (this._keyInterpreter != null) { this._keyInterpreter.Deactivate(); } this._keyInterpreter = this._ski; this._keyInterpreter.Activate(); } }
private void ActivateEmptyKeyInterpreter() { if (this._eki == null) { this._eki = new EmptyKeyInterpreter(this); } if (this._eki != this._keyInterpreter) { if (this._keyInterpreter != null) { this._keyInterpreter.Deactivate(); } this._keyInterpreter = this._eki; this._keyInterpreter.Activate(); } }