public Shell(IConfigController configController, IExporter[] allExporters, ILocalController localController, BuildController buildController) { var guiStrings = localController.GetLocalStrings<SDGuiStrings>(); DataContext = new ShellViewModel(guiStrings, configController, buildController, ExecuteOnClose); Strings = guiStrings; Style = (Style)FindResource("SharpDoxWindowStyle"); Closing += (sender, args) => ExecuteOnClose(); SourceInitialized += OnWindowSourceInitialized; InitializeComponent(); svBody.Content = new ConfigGridControl(configController, allExporters, localController, buildController); }
public Shell(SDGuiStrings strings, SharpDoxConfig sharpDoxConfig, IConfigController configController, IPage[] allPages) { _allPages = allPages; DataContext = new ShellViewModel(strings, configController, sharpDoxConfig, ExecuteOnClose); Strings = strings; InitializeComponent(); SetMainMenu(); SetExportDropDown(); MouseLeftButtonDown += (s, a) => DragMove(); }