示例#1
0
 AppWindow(ISettingsService settingsService, IDocumentTabService documentTabService, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandService wpfCommandService)
 {
     assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly);
     uiSettings = new UISettings(settingsService);
     uiSettings.Read();
     stackedContent          = new StackedContent <IStackedContentChild>(margin: new Thickness(6));
     this.documentTabService = documentTabService;
     statusBar              = new AppStatusBar();
     this.appToolBar        = appToolBar;
     this.mainWindowControl = mainWindowControl;
     this.wpfCommandService = wpfCommandService;
     mainWindowCommands     = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW);
     mainWindowClosing      = new WeakEventList <CancelEventArgs>();
     mainWindowClosed       = new WeakEventList <EventArgs>();
 }
示例#2
0
		AppWindow(ISettingsService settingsService, IDocumentTabService documentTabService, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandService wpfCommandService) {
			assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly);
			uiSettings = new UISettings(settingsService);
			uiSettings.Read();
			stackedContent = new StackedContent<IStackedContentChild>(margin: new Thickness(6));
			this.documentTabService = documentTabService;
			statusBar = new AppStatusBar();
			this.appToolBar = appToolBar;
			this.mainWindowControl = mainWindowControl;
			this.wpfCommandService = wpfCommandService;
			mainWindowCommands = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW);
			mainWindowClosing = new WeakEventList<CancelEventArgs>();
			mainWindowClosed = new WeakEventList<EventArgs>();
		}