From f373ad1f566c9c8679547f4205d86eb6e0836d59 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 06 一月 2025 17:22:13 +0800 Subject: [PATCH] 修改保存逻辑 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs | 20 +++----------------- 1 files changed, 3 insertions(+), 17 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs index 1ec4c8a..e4390cf 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs @@ -124,11 +124,6 @@ //澧炲姞宸ュ喌浜嬩欢 this.simulationFunctionMgrCtrl1.AppendWorking(scheme, working); }; - page.SaveModelEvent += (rhs) => - { - //淇濆瓨妯″瀷浜嬩欢 - return this.simulationFunctionMgrCtrl1.SaveModel(scheme, rhs); - }; page.RefreshModelEvent += () => { //鍒锋柊妯″瀷浜嬩欢 @@ -258,23 +253,14 @@ XhsProjectVmo project, XhsProjectSiteVmo projectSite, Yw.Model.HydroModelInfo hydroInfo, + List<XhsSchemeVmo> allSchemeList, SvgImage svgImage ) { - //WaitFormHelper.ShowWaitForm(this.FindForm(), "姝e湪鍔犺浇妯″瀷锛岃绋嶄警..."); - //var dlg = new AddXhsSchemeDlg(); - //dlg.Shown += delegate { WaitFormHelper.HideWaitForm(this.FindForm()); }; - //dlg.ReloadDataEvent += (rhs) => - //{ - // this.simulationFunctionMgrCtrl1.AppendScheme(rhs); - //}; - //dlg.SetBindingData(project, projectSite, hydroInfo); - //dlg.ShowDialog(); - - WaitFormHelper.ShowWaitForm(this.FindForm(), "姝e湪鍔犺浇妯″瀷锛岃绋嶄警..."); + WaitFormHelper.ShowWaitForm(this.FindForm(), "姝e湪鍔犺浇锛岃绋嶄警..."); var dlg = new CreateXhsSchemeDlg(); dlg.Shown += delegate { WaitFormHelper.HideWaitForm(this.FindForm()); }; - dlg.SetBindingData(project, projectSite, hydroInfo); + dlg.SetBindingData(project, projectSite, hydroInfo, allSchemeList); dlg.ReloadDataEvent += (rhs) => { this.simulationFunctionMgrCtrl1.AppendScheme(rhs); -- Gitblit v1.9.3