private void LoadPerspectiveLayout()
        {
            if (DataState.Perspective == null)
            {
                return;
            }
            if (DataState.Perspective.DockPanelDesign == null)
            {
                return;
            }
            if (m_dockWrapper == null)
            {
                return;
            }

            var design = DataState.Perspective.DockPanelDesign;

            // load dockpanel from XML
            var master = new DockPanelContentFrame();

            master.HeaderRedirectFrame = this;
            master.PrimaryContent      = this;
            m_dockWrapper.ReplaceContent(master);

            master.LoadFromXml(design.LayoutXml, design.CreateFrames(this));
            DataState.DockPanelFrame = master;
            MainWindow.Instance.UpdateFrameEnabling(master);
            DispatchDetailRow(dataGridView1.GetCurrentRow());
        }
Beispiel #2
0
        public void OpenDetailInNewDock(ContentFrame frame, DocumentDockPosition position)
        {
            var master = new DockPanelContentFrame();

            master.HeaderRedirectFrame = this;
            master.PrimaryContent      = this;
            m_dockWrapper.ReplaceContent(master);
            master.OpenContent(this, null, DocumentDockPosition.Center);
            master.OpenContent(frame, this, position);
            MainWindow.Instance.UpdateFrameEnabling(master);
        }
Beispiel #3
0
 internal void LoadLayoutFromPanel(DockPanelContentFrame frame)
 {
     m_layout = XmlTool.CreateDocument("Layout");
     frame.SaveLayout(m_layout.DocumentElement);
 }