Esempio n. 1
0
        /// <summary>
        /// Configures the environment ready for use.
        /// </summary>
        private void ConfigureEnvironment()
        {
            SetupMenuItemBag();

            Licensing.License license = new Licensing.License();

            PrimaryMenus primaryMenus = new PrimaryMenus(
                MenuItemBag.FileMenu,
                MenuItemBag.ViewMenu,
                MenuItemBag.QSetMenu,
                MenuItemBag.QueueMenu,
                MenuItemBag.MessageMenu,
                MenuItemBag.ToolsMenu,
                MenuItemBag.HelpMenu,
                MenuItemBag.MessageBrowserCtxMenu,
                MenuItemBag.QSetCtxMenu);

            PrimaryControls primaryControls = new PrimaryControls(
                license,
                this.dockPanel,
                new Images());

            PrimaryForms primaryForms = new PrimaryForms(this, new QueueSearchForm());

            UserSettings   userSettings   = UserSettings.Create();
            PrimaryObjects primaryObjects = new PrimaryObjects(new ProcessVisualizer(this), userSettings, license);

            primaryObjects.ProcessVisualizer.StatusBarPanel = this.workingStatusBarPanel;

            _environmentCoordinator = new EnvironmentCoordinator(primaryMenus, primaryControls, primaryForms, primaryObjects);
            _environmentCoordinator.SetUp();
        }
Esempio n. 2
0
		/// <summary>
		/// Configures the environment ready for use.
		/// </summary>		
		private void ConfigureEnvironment()
		{
			SetupMenuItemBag();

			Licensing.License license = new Licensing.License();

			queueSetExplorer = new Mulholland.QSet.Application.Controls.QSetExplorer();
			queueSetExplorer.Dock = DockStyle.Fill;
			qSetExplorerDock.Controls.Add(queueSetExplorer);
			
			defaultMessageViewer = new Mulholland.QSet.Application.Controls.MessageViewer(license);
			defaultMessageViewer.Dock = DockStyle.Fill;
			messageViewerDock.Controls.Add(defaultMessageViewer);
			
			qSetMonitor = new Mulholland.QSet.Application.Controls.QSetMonitor();
			qSetMonitor .Dock = DockStyle.Fill;
			qSetMonitorDockControl.Controls.Add(qSetMonitor);

			PrimaryMenus primaryMenus = new PrimaryMenus(
				MenuItemBag.FileMenu, 
				MenuItemBag.ViewMenu,
				MenuItemBag.QSetMenu, 
				MenuItemBag.QueueMenu,
				MenuItemBag.MessageMenu,
				MenuItemBag.ToolsMenu,
				MenuItemBag.HelpMenu,
				MenuItemBag.MessageBrowserCtxMenu,
				MenuItemBag.QSetCtxMenu);

            mainDocumentContainer.Manager = new TD.SandDock.SandDockManager();

			PrimaryControls primaryControls = new PrimaryControls(
				queueSetExplorer, 
				qSetMonitor,
				propertyGrid,
				defaultMessageViewer, 
				mainDocumentContainer,
				new Images());			
			
			PrimaryForms primaryForms = new PrimaryForms(this, new QueueSearchForm());			
			
			UserSettings userSettings = UserSettings.Create();
			PrimaryObjects primaryObjects = new PrimaryObjects(new ProcessVisualizer(this), userSettings, license);
			primaryObjects.ProcessVisualizer.StatusBarPanel = this.workingStatusBarPanel;				

			_environmentCoordinator = new EnvironmentCoordinator(this, primaryMenus, primaryControls, primaryForms, primaryObjects);
			_environmentCoordinator.SetUp();
		}