From bbe6bd34ded053c0ae33c018f3af53daac43629f Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 12 一月 2023 16:44:15 +0800 Subject: [PATCH] 数据下载优化 --- HDL_ON/Entity/FunctionList.cs | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs index 2999288..6060289 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) @@ -452,14 +452,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