public void DeHideAllPad() { if (_isHideAllPad) { _isHideAllPad = false; //只有本来是可见的,才做处理 if (_propertyPadVisible) { MainPropertyPad.Show(); } if (_previewPadVisible) { MainPreviewPad.Show(); } if (_wizardPadVisible) { MainWizardPad.Show(); } if (_resultPadVisible) { MainResultPad.Show(); } if (_treePadVisible) { MainTreePad.Show(); } if (_tmpltViewPadVisible) { MainTmpltViewPad.Show(); } } }
public void ResetAllPad() { MainWizardPad.Hide(); MainPropertyPad.Hide(); MainTreePad.Hide(); MainPreviewPad.Hide(); MainTmpltViewPad.Hide(); MainResultPad.Hide(); MainWizardPad.Show(MainDockPanel, DockState.DockLeftAutoHide); MainPropertyPad.Show(MainDockPanel, DockState.DockBottom); MainPreviewPad.Show(MainDockPanel, DockState.DockBottom); MainTreePad.Show(MainDockPanel, DockState.DockRight); MainTmpltViewPad.Show(MainDockPanel, DockState.DockRight); MainResultPad.Show(MainDockPanel, DockState.DockBottom); //todo:查找结果窗口未处理 //ResultsPad result = new ResultsPad(); //result.Show(MainDockPanel, DockState.DockBottom); }
void MainDockPanel_ActiveDocumentChanged(object sender, EventArgs e) { ///设置Service.Workbench里的值 if (this.ActiveView == null) { InternalService.SetActiveWorkDocument(WorkDocumentType.None, "", null); } else { InternalService.SetActiveWorkDocument(this.ActiveView.WorkDocumentType, this.ActiveView.Id, this.ActiveView); } ///触发Service.Workbench的ActiveWorkDocumentChanged事件 InternalService.OnActiveWorkDocumentChanged(new EventArgs <Form>(this.ActiveView)); ///处理属性面板 MainPropertyPad.RefreshAutoPanel(); ///处理预览服务器 MainPreviewPad.RefreshWebBrowser(); }
public void HideAllPad() { if (!_isHideAllPad) { _isHideAllPad = true; //更新面板的可见状态 UpdatePagState(); //只有本来是可见的,才做处理 if (_tmpltViewPadVisible) { MainTmpltViewPad.Hide(); } if (_treePadVisible) { MainTreePad.Hide(); } if (_propertyPadVisible) { MainPropertyPad.Hide(); } if (_resultPadVisible) { MainResultPad.Hide(); } if (_wizardPadVisible) { MainWizardPad.Hide(); } if (_previewPadVisible) { MainPreviewPad.Hide(); } } }