From c8552b21551b7fccd19e5dac28c05092fcde29cb Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期四, 13 二月 2025 17:40:23 +0800 Subject: [PATCH] 优化导入XML --- WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionBundleInfo.cs | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" index 2b20b1f..3a2c8b8 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" @@ -173,7 +173,7 @@ public void ShowPage( ViewModel.HdrBaseInfo base_info, ViewModel.GeomBaseInfo geom_info, - DPumpHydr.ViewModel.eWizardStepDiretion step_direction,bool isxml) + DPumpHydr.ViewModel.eWizardStepDiretion step_direction,bool isRefreshModel = true) { if (step_direction == DPumpHydr.ViewModel.eWizardStepDiretion.鍚庨��) { @@ -181,10 +181,7 @@ } this._hdrBaseInfo = base_info; this._geomBaseInfo = geom_info; - if (isxml) - { - return; - } + if (_sectionBundleInfo == null) { _sectionBundleInfo = new ViewModel.SectionBundleInfo(); @@ -206,9 +203,13 @@ } } - RefreshAllSectPara(_sectionBundleInfo); + if (isRefreshModel == false) + { + return; + } + RefreshShape(_sectionBundleInfo); } private void pictureBoxRefreshK3_Click(object sender, EventArgs e) -- Gitblit v1.9.3