From b826e3716742abba49ab2a851b943ea8328db66e Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期二, 24 十二月 2024 11:19:45 +0800
Subject: [PATCH] 水池匹配修改

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/00-core/05-working/SimulationWorkingHelper.cs |   42 ++++++++++++++++++++++++++++++++++++++----
 1 files changed, 38 insertions(+), 4 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/00-core/05-working/SimulationWorkingHelper.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/00-core/05-working/SimulationWorkingHelper.cs
index b3bb3ab..f4bd249 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/00-core/05-working/SimulationWorkingHelper.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/00-core/05-working/SimulationWorkingHelper.cs
@@ -13,12 +13,35 @@
         public SimulationWorkingHelper() { }
 
         /// <summary>
+        /// 鍒濆鍖栦簨浠�
+        /// </summary>
+        public event Action InitialEvent;
+
+        /// <summary>
+        /// 鏄惁鍒濆鍖�
+        /// </summary>
+        public bool Initialized
+        {
+            get { return this.Working != null; }
+        }
+
+        /// <summary>
+        /// 姘村姏淇℃伅
+        /// </summary>
+        public Yw.Model.HydroModelInfo HydroInfo
+        {
+            get { return _hydroInfo; }
+            private set { _hydroInfo = value; }
+        }
+        private Yw.Model.HydroModelInfo _hydroInfo = null;
+
+        /// <summary>
         /// 宸ュ喌
         /// </summary>
         public HydroWorkingVmo Working
         {
             get { return _working; }
-            set { _working = value; }
+            private set { _working = value; }
         }
         private HydroWorkingVmo _working = null;
 
@@ -28,7 +51,7 @@
         public HydroCheckResult CheckResult
         {
             get { return _checkResult; }
-            set { _checkResult = value; }
+            private set { _checkResult = value; }
         }
         private HydroCheckResult _checkResult = null;
 
@@ -38,19 +61,30 @@
         public HydroCalcuResult CalcuResult
         {
             get { return _calcuResult; }
-            set { _calcuResult = value; }
+            private set { _calcuResult = value; }
         }
         private HydroCalcuResult _calcuResult = null;
 
         /// <summary>
         /// 鍒濆鍖栨暟鎹�
         /// </summary>
-        public void InitialData(HydroWorkingVmo working, HydroCheckResult checkResult, HydroCalcuResult calcuResult)
+        public void InitialData(Yw.Model.HydroModelInfo hydroInfo, HydroWorkingVmo working, HydroCheckResult checkResult, HydroCalcuResult calcuResult)
         {
+            this.HydroInfo = hydroInfo;
             this.Working = working;
             this.CheckResult = checkResult;
             this.CalcuResult = calcuResult;
+            this.InitialEvent?.Invoke();
         }
 
+        /// <summary>
+        /// 閲嶇疆宸ュ喌
+        /// </summary>
+        public void ResetWorking(HydroWorkingVmo working)
+        {
+            this.Working = working;
+        }
+
+
     }
 }

--
Gitblit v1.9.3