From 04f9d03e29ce75b4aa0d108a1c2987fe2aaf61f6 Mon Sep 17 00:00:00 2001 From: tx <123456> Date: 星期二, 15 四月 2025 12:44:41 +0800 Subject: [PATCH] 添加Open --- WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs | 53 ++++++++++++++++++++++++++++------------------------- 1 files changed, 28 insertions(+), 25 deletions(-) diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs index cfe2b99..5283aa9 100644 --- a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs +++ b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs @@ -19,12 +19,7 @@ OccDesign2DCtrl _occDesign2dCtrl; DesignMainDockPanel _designMainDockPanel; - - ctrlThicknessParas _ctrlThicknessParas = null; - - - private double _bodyThickness = 0; @@ -32,8 +27,7 @@ { InitializeComponent(); - //InitWindow(); - + Application.AddMessageFilter(new ControlScrollFilter()); // Add the dock content drag message filter to handle moving dock content around. @@ -51,10 +45,10 @@ MainDockPanel.RightDockWidth = 335; MainDockPanel.BottomDockHeight = 210; } - - - - + + /// <summary> + /// + /// </summary> public void InitWindow() { InitialRibbonForm(); @@ -97,19 +91,12 @@ }; this._stepTreeDockPanel.AfterSelectedNodeChangedEvent += (arg1, arg2) => - { - // + { if (arg2 != null) - { - this.SetParasCtrl(arg1.ID, arg2.ID ); - - - // - this._stepTreeDockPanel.SetFocusedNode(arg2.ID); + { + this.ChangeStep(arg1.ID, arg2.ID); } - - CheckStepBtnStatus(); - + return true; }; @@ -126,6 +113,7 @@ RBtn鍚庨��.Enabled = false; Rbtn鍓嶈繘.Enabled = true; + Rbtn涓嬩竴姝�.Enabled = true; Rbtn涓婁竴姝�.Enabled = false; Rbtn瀹屾垚.Enabled = false; @@ -133,12 +121,28 @@ InitialDesginPanel(); + + if (_ctrlHdrBaseInfo == null) + { + _ctrlHdrBaseInfo = new ctrlHdrBaseInfo(); + _ctrlHdrBaseInfo.Name = "ctrlHdrBaseInfo"; + _ctrlHdrBaseInfo.Dock = DockStyle.Right; + _ctrlHdrBaseInfo.InitialParas(); + _ctrlHdrBaseInfo.OnNextStep += () => + { + GoNextStep(); + }; + } - + this.DockStepParaCtrl(_ctrlHdrBaseInfo); - InitialStepNodes(); + //// 鍒濆鍖栨楠ゅ垪琛� + this._stepTreeDockPanel.InitialStepNodes(); } + /// <summary> + /// + /// </summary> private void InitialDesginPanel() { this._occDesign3dCtrl = new OccDesign3DCtrl(); @@ -161,7 +165,6 @@ _designMainDockPanel.SetOccCtrl(_occDesign3dCtrl, _occDesign2dCtrl); MainDockPanel.AddContent(_designMainDockPanel); - } #region 姝ラ鎿嶄綔 -- Gitblit v1.9.3