public void OpenClosePropPanel(bool IsOpen) { if (IsOpen == true) { p_testform.Hide(); } else { p_testform.Show(); } }
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); }