From 84b06d7cb3c47b7040bceb22bf3d64feb426a2fe Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 27 十一月 2024 14:58:42 +0800
Subject: [PATCH] 增加一些工况分析

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs |   36 +++++-------------------------------
 1 files changed, 5 insertions(+), 31 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs
index 93e9243..1a7adbf 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs
@@ -17,6 +17,7 @@
             this.xhsProjectSimulationFunctionMgrCtrl1.ShowProjectSiteSimulationEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteSimulationEvent;
             this.xhsProjectSimulationFunctionMgrCtrl1.ShowProjectSiteWorkingEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteWorkingEvent;
             this.xhsProjectSimulationFunctionMgrCtrl1.ProjectSiteWorkingCheckedEvent += XhsProjectSimulationFunctionMgrCtrl1_ProjectSiteWorkingCheckedEvent;
+            this.xhsProjectSimulationFunctionMgrCtrl1.CreateProjectSiteSchemeEvent += XhsProjectSimulationFunctionMgrCtrl1_CreateProjectSiteSchemeEvent;
         }
 
         private XhsProjectVmo _project = null;//椤圭洰
@@ -156,45 +157,18 @@
             ctrl.UpdateWorkingCheckedList(working, hasChecked);
         }
 
-
-
-        //鍒涘缓椤圭洰鏂规浜嬩欢
-        private void XhsProjectSimulationFunctionMgrCtrl1_CreateProjectSchemeEvent(DevExpress.Utils.Svg.SvgImage svgImage)
+        //椤圭洰绔欐柟妗堝垱寤轰簨浠�
+        private async void XhsProjectSimulationFunctionMgrCtrl1_CreateProjectSiteSchemeEvent
+            (XhsProjectVmo project, XhsProjectSiteVmo projectSite, DevExpress.Utils.Svg.SvgImage svgImage)
         {
-            //if (_projectSite == null)
-            //{
-            //    return;
-            //}
-            //var dlg = new AddXhsProjectSimulationSchemeDlg();
-            //await dlg.SetBindingData(_projectSite.ID);
-            //dlg.ReloadDataEvent += (scheme) =>
-            //{
-            //    this.xhsProjectSimulationFunctionMgrCtrl1.AppendScheme(scheme);
-            //};
-            //dlg.ShowDialog();
-
             var dlg = new AddXhsSchemeDlg();
-            // await dlg.SetBindingData(_project, _projectSite, _hydroInfo);
+            await dlg.SetBindingData(project, projectSite, null);
             dlg.ShowDialog();
         }
 
-        //鏄剧ず椤圭洰鏂规浜嬩欢
-        private void XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSchemeEvent(XhsSchemeVmo arg1, DevExpress.Utils.Svg.SvgImage arg2)
-        {
 
-        }
 
-        //姣旇緝椤圭洰宸ュ喌浜嬩欢
-        private void XhsProjectSimulationFunctionMgrCtrl1_CompareProjectWorkingEvent(DevExpress.Utils.Svg.SvgImage obj)
-        {
 
-        }
-
-        //鏄剧ず椤圭洰宸ュ喌浜嬩欢
-        private void XhsProjectSimulationFunctionMgrCtrl1_ShowProjectWorkingEvent(HydroWorkingVmo arg1, DevExpress.Utils.Svg.SvgImage arg2)
-        {
-
-        }
 
         #endregion
 

--
Gitblit v1.9.3