/// <summary> /// Создание дочерних элементов /// </summary> private void CreateInstances() { Schematix.Core.Logger.Log.Info("Creating ToolBox Panel"); toolBoxPanel = new ToolBoxPanel(); Schematix.Core.Logger.Log.Info("Creating MessageWindow Panel"); messageWindowPanel = new MessageWindowPanel(); Schematix.Core.Logger.Log.Info("Creating ProjectExplorer Panel"); projectExplorerPanel = new ProjectExplorerPanel(this); Schematix.Core.Logger.Log.Info("Creating DesignBrowser Panel"); designBrowserPanel = new DesignBrowserPanel(this); Schematix.Core.Logger.Log.Info("Creating Console Panel"); _console = new ConsolePanel(); Schematix.Core.Logger.Log.Info("Creating StartPage Panel"); startPagePanel = new StartPagePanel(); }
private void FindInstances() { toolBoxPanel = FindPanel <ToolBoxPanel>(); if (toolBoxPanel == null) { toolBoxPanel = new ToolBoxPanel(); } messageWindowPanel = FindPanel <MessageWindowPanel>(); if (messageWindowPanel == null) { messageWindowPanel = new MessageWindowPanel(); } projectExplorerPanel = FindPanel <ProjectExplorerPanel>(); if (projectExplorerPanel == null) { projectExplorerPanel = new ProjectExplorerPanel(this); } designBrowserPanel = FindPanel <DesignBrowserPanel>(); if (designBrowserPanel == null) { designBrowserPanel = new DesignBrowserPanel(this); } _console = FindPanel <ConsolePanel>(); if (_console == null) { _console = new ConsolePanel(); } _console.IsActive = true; startPagePanel = FindPanel <StartPagePanel>(); if (startPagePanel == null) { startPagePanel = new StartPagePanel(); } //_search = new SearchReplace(); }