From 3843ae9f9e5d3e17e6be7233d0c9708d5abe37bb Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 23 二月 2023 09:16:12 +0800
Subject: [PATCH] 版本号备份

---
 HDL_ON/Entity/FunctionList.cs |   26 ++++++++++----------------
 1 files changed, 10 insertions(+), 16 deletions(-)

diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs
index 2999288..f21e670 100644
--- a/HDL_ON/Entity/FunctionList.cs
+++ b/HDL_ON/Entity/FunctionList.cs
@@ -19,7 +19,7 @@
             try
             {
                 _FunctionList._IpCamImou = null;
-                _FunctionList.Clear();
+                _FunctionList.ClearDatas();
                 _FunctionList = null;
             }
             catch (Exception ex)
@@ -175,17 +175,9 @@
         /// </summary>
         public List<Function> InverterList()
         {
-            //get
-            //{
-            //    return _inverterList;
-            //}
-            //set
-            //{
-            //    _inverterList = value;
-            //}
-            return Functions.FindAll((obj) => obj.spk == SPK.Inverter);
+            return Functions.FindAll((obj) => obj.spk == SPK.Inverter || obj.spk == SPK.InverterRst);
         }
-#region 瀹剁數鍒楄〃 electricals
+        #region 瀹剁數鍒楄〃 electricals
         /// <summary>
         /// 瀹剁數鍒楄〃
         /// </summary>
@@ -452,14 +444,16 @@
         /// <summary>
         /// 娓呯┖璁惧鍔熻兘鍒楄〃
         /// </summary>
-        public void Clear()
+        public void ClearDatas()
         {
             try
             {
-                _IpCamImou.Clear();
-                _IpCamImou = null;
-                _FunctionList.Clear();
-                _FunctionList = null;
+                if (_IpCamImou != null)
+                {
+                    _IpCamImou.Clear();
+                    _IpCamImou = null;
+                }
+                _FunctionList = new FunctionList();
             }
             catch (Exception ex)
             {

--
Gitblit v1.8.0