コード例 #1
0
        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;
        }
コード例 #2
0
 private PluginsConfiguration LoadPluginsConfiguration()
 {
     return(_pluginConfigurationRepository.LoadOrCreateDefault());
 }