private void InitializeViewModels() { _pluginsSettingsWindowViewModel = _viewModelFactory.Create <IPluginsSettingsWindowViewModel>(); IPluginsConfigurationViewModel pluginsConfigurationViewModel = _viewModelFactory.Create <IPluginsConfigurationViewModel>(); pluginsConfigurationViewModel.FromModel(_pluginConfigurationRepository.LoadOrCreateDefault()); _pluginsSettingsWindowViewModel.SaveCommand = new RelayCommand(SaveAndClose); _pluginsSettingsWindowViewModel.CloseCommand = new RelayCommand(Close); _pluginsSettingsWindowViewModel.PluginsConfigurationViewModel = pluginsConfigurationViewModel; }
private PluginsConfiguration LoadPluginsConfiguration() { return(_pluginConfigurationRepository.LoadOrCreateDefault()); }