From 171bf03f3664226eeff2b20ee9bd2e914b63a17d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 13 三月 2020 09:18:50 +0800
Subject: [PATCH] 20200313

---
 HDL_ON/Entity/Function/FunctionList.cs |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/Entity/Function/FunctionList.cs b/HDL_ON/Entity/Function/FunctionList.cs
index 44eba77..3ab69c5 100644
--- a/HDL_ON/Entity/Function/FunctionList.cs
+++ b/HDL_ON/Entity/Function/FunctionList.cs
@@ -14,10 +14,21 @@
         public void GetAllFunction()
         {
             functions.Clear();
-            functions.AddRange(aCs);
-            functions.AddRange(lights);
-            functions.AddRange(curtains);
-            functions.AddRange(floorHeatings);
+            functions.AddRange(GetAllDeviceFunctionList());
+            functions.AddRange(scenes);
+        }
+
+        /// <summary>
+        /// 鑾峰彇璁惧鍔熻兘鍒楄〃
+        /// </summary>
+        public List<Function> GetAllDeviceFunctionList()
+        {
+            var deviceFunctionList = new List<Function>();
+            deviceFunctionList.AddRange(aCs);
+            deviceFunctionList.AddRange(lights);
+            deviceFunctionList.AddRange(curtains);
+            deviceFunctionList.AddRange(floorHeatings);
+            return deviceFunctionList;
         }
 
         public List<AC> aCs = new List<AC>();
@@ -27,5 +38,8 @@
         public List<Curtain> curtains = new List<Curtain>();
 
         public List<FloorHeating> floorHeatings = new List<FloorHeating>();
+
+        public List<Scene> scenes = new List<Scene>();
+
     }
 }

--
Gitblit v1.8.0