From af224fed5dea064e306a0591dcd080655e38ec18 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 21 十一月 2022 17:08:02 +0800
Subject: [PATCH] 光伏界面更新,大华摄像头跨平台界面更新

---
 HDL_ON/Entity/FunctionList.cs |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs
index 673ce1b..93616b8 100644
--- a/HDL_ON/Entity/FunctionList.cs
+++ b/HDL_ON/Entity/FunctionList.cs
@@ -13,6 +13,21 @@
     public class FunctionList
     {
         static FunctionList _FunctionList;
+
+        public static void ClearData()
+        {
+            try
+            {
+                _FunctionList.Clear();
+                _FunctionList = null;
+            }
+            catch (Exception ex)
+            {
+                MainPage.Log($"娓呯悊FunctionList寮傚父:{ex.Message}");
+                _FunctionList = null;
+            }
+        }
+
         public static FunctionList List
         {
             get
@@ -48,6 +63,20 @@
             return Functions.FindAll((obj) => obj.spk == SPK.MechanicalArm);
         }
 
+        List<Function> _IpCamImou;
+        /// <summary>
+        /// 鑾峰彇鎽勫儚澶村垪琛�
+        /// </summary>
+        /// <returns></returns>
+        public List<Function> GetIpCamImouList()
+        {
+            if (_IpCamImou == null)
+            {
+                _IpCamImou = Functions.FindAll((obj) => obj.spk == SPK.IpCam_Imou);
+            }
+            return _IpCamImou;
+        }
+
         /// <summary>
         /// 缁垮缓绉戞妧绯荤粺
         /// 鎬绘帶鍒楄〃

--
Gitblit v1.8.0