Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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();
                }
            }
        }