Beispiel #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>();
 }
Beispiel #2
0
 AppWindow(IThemeManager themeManager, IImageManager imageManager, IAppSettings appSettings, ISettingsManager settingsManager, IFileTabManager fileTabManager, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandManager wpfCommandManager, IDecompilerManager decompilerManager)
 {
     this.assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly);
     this.uiSettings = new UISettings(settingsManager);
     this.uiSettings.Read();
     this.appSettings           = appSettings;
     this.stackedContent        = new StackedContent <IStackedContentChild>(margin: new Thickness(6));
     this.themeManager          = themeManager;
     themeManager.ThemeChanged += ThemeManager_ThemeChanged;
     this.imageManager          = imageManager;
     this.fileTabManager        = fileTabManager;
     this.statusBar             = new AppStatusBar();
     this.appToolBar            = appToolBar;
     this.mainWindowControl     = mainWindowControl;
     this.wpfCommandManager     = wpfCommandManager;
     this.decompilerManager     = decompilerManager;
     this.mainWindowCommands    = wpfCommandManager.GetCommands(ControlConstants.GUID_MAINWINDOW);
     this.mainWindowClosing     = new WeakEventList <CancelEventArgs>();
     this.mainWindowClosed      = new WeakEventList <EventArgs>();
 }
Beispiel #3
0
 AppWindow(IThemeManager themeManager, IImageManager imageManager, IAppSettings appSettings, ISettingsManager settingsManager, IFileTabManager fileTabManager, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandManager wpfCommandManager, ILanguageManager languageManager)
 {
     this.assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly);
     this.uiSettings = new UISettings(settingsManager);
     this.uiSettings.Read();
     this.appSettings = appSettings;
     this.stackedContent = new StackedContent<IStackedContentChild>(margin: new Thickness(6));
     this.themeManager = themeManager;
     themeManager.ThemeChanged += ThemeManager_ThemeChanged;
     this.imageManager = imageManager;
     this.fileTabManager = fileTabManager;
     this.statusBar = new AppStatusBar();
     this.appToolBar = appToolBar;
     this.mainWindowControl = mainWindowControl;
     this.wpfCommandManager = wpfCommandManager;
     this.languageManager = languageManager;
     this.mainWindowCommands = wpfCommandManager.GetCommands(CommandConstants.GUID_MAINWINDOW);
     this.mainWindowClosing = new WeakEventList<CancelEventArgs>();
     this.mainWindowClosed = new WeakEventList<EventArgs>();
     this.appSettings.PropertyChanged += AppSettings_PropertyChanged;
     InitializeTextFormatterProvider();
 }
Beispiel #4
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>();
		}