public ConfigurationService(CommandService commandService) { ToolbarConfiguration = new ToolbarConfigModel { IsFileVisible = true, IsEditVisible = true, IsViewVisible = true, IsHelpVisible = true, IsVisible = true }; PaneConfiguration = new PaneConfigModel { NavigationPaneWidthPx = 220, PreviewOrDetailsPanePaneWidthPx = 240, IsNavigationPaneVisible = true, IsDetailsPaneVisible = false, IsPreviewPaneVisible = false, IsDetailsView = false, IsThumbnailView = true }; ApplicationConfiguration = new ApplicationConfigModel(); _commandService = commandService; _onSimpleCommand = commandService.EventAggregator.Subscribe <CommandType>(SimpleCommandAction); _onParameterizedCommand = commandService.EventAggregator.Subscribe <KeyValuePair <CommandType, object> >(ParameterizedCommandAction); }
internal void LoadConfigurations() { ApplicationConfiguration = _configService.Get <ApplicationConfigModel>(); if (ApplicationConfiguration == null) { ApplicationConfiguration = new ApplicationConfigModel(); } ToolbarConfiguration = _configService.Get <ToolbarConfigModel>(); if (ToolbarConfiguration == null) { ToolbarConfiguration = new ToolbarConfigModel { IsFileVisible = true, IsEditVisible = true, IsViewVisible = true, IsHelpVisible = true, IsVisible = true }; } PaneConfiguration = _configService.Get <PaneConfigModel>(); if (PaneConfiguration == null) { PaneConfiguration = new PaneConfigModel { NavigationPaneWidthPx = 220, PreviewOrDetailsPanePaneWidthPx = 240, IsNavigationPaneVisible = true, IsDetailsPaneVisible = false, IsPreviewPaneVisible = false, IsDetailsView = false, IsThumbnailView = true }; } }