public ShellWindowViewModel(IConfigurationService configurationService, CreateItemViewModel creator, HistoryListViewModel historyList, SettingsWindowManager settingsManager) { _settingsManager = settingsManager; _configurationAgent = configurationService.GetConfigurationAgent <ShellConfiguration>(ApplicationConfigurations.ShellConfiguration, this); _subscriptions = _configurationAgent.Updated.ObserveOnDispatcher().Do(x => { RefreshConfig(); }).Subscribe(); Creator = creator; HistoryList = historyList; ShowSettingsCommand = ReactiveCommand.Create(() => { _settingsManager.ShowSettingsWindow(); }); RefreshConfig(); PropertyChanged += (sender, e) => { PersistConfig(); }; }
private void ShowSettings() { RestoreApplication(); _settingsManager.ShowSettingsWindow(); }