Exemplo n.º 1
0
        private void InitializePanels()
        {
            NavigationPanel     = new NavigationPanel(ProjectManager);
            ViewportPanel       = new ViewportPanel(ProjectManager);
            ValidationPanel     = new ValidationPanel(ProjectManager);
            PropertiesPanel     = new PartPropertiesPanel(ProjectManager);
            DetailPanel         = new ElementDetailPanel(ProjectManager);
            StudConnectionPanel = new StudConnectionPanel(ProjectManager);

            ViewportPanel.Show(DockPanelControl, DockState.Document);
            StudConnectionPanel.Show(DockPanelControl, DockState.Document);
            ViewportPanel.Activate();

            DockPanelControl.DockLeftPortion = 250;
            NavigationPanel.Show(DockPanelControl, DockState.DockLeft);

            DockPanelControl.DockWindows[DockState.DockBottom].BringToFront();
            DockPanelControl.DockBottomPortion = 230;

            PropertiesPanel.Show(DockPanelControl, DockState.DockBottom);
            DetailPanel.Show(PropertiesPanel.Pane, null);
            ValidationPanel.Show(PropertiesPanel.Pane, null);

            PropertiesPanel.Activate();
        }
Exemplo n.º 2
0
        private void LoadDefaultLayout()
        {
            foreach (var content in DockPanelControl.Contents.ToArray())
            {
                content.DockHandler.DockPanel = null;
            }

            try
            {
                var layoutStream = ResourceHelper.GetResourceStream("DefaultLayout.xml");
                if (layoutStream != null)
                {
                    DockPanelControl.LoadFromXml(layoutStream, DockContentLoadingHandler);
                }
                return;
            }
            catch { }

            ViewportPanel.Show(DockPanelControl, DockState.Document);

            StudConnectionPanel.Show(DockPanelControl, DockState.Document);

            ViewportPanel.Activate();

            DockPanelControl.DockLeftPortion = 250;

            NavigationPanel.Show(DockPanelControl, DockState.DockLeft);

            DockPanelControl.DockWindows[DockState.DockBottom].BringToFront();
            DockPanelControl.DockBottomPortion = 250;

            PropertiesPanel.Show(DockPanelControl, DockState.DockBottom);

            DetailPanel.Show(PropertiesPanel.Pane, null);

            ConnectionPanel.Show(PropertiesPanel.Pane, null);

            ValidationPanel.Show(PropertiesPanel.Pane, null);

            InfoPanel.Show(PropertiesPanel.Pane, null);
        }