From f903d306e6b7e710ca9f3cce87251e710714d8aa Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 13 二月 2023 14:27:54 +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