From 62d77d3bb8e7215d9da9ecf6f5aeda0b69f805f8 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 08 十二月 2020 18:57:15 +0800
Subject: [PATCH] 20201208

---
 HDL_ON/Entity/DB_ResidenceData.cs |   35 +++++++++++++++--------------------
 1 files changed, 15 insertions(+), 20 deletions(-)

diff --git a/HDL_ON/Entity/DB_ResidenceData.cs b/HDL_ON/Entity/DB_ResidenceData.cs
index 0d6b029..f11328a 100644
--- a/HDL_ON/Entity/DB_ResidenceData.cs
+++ b/HDL_ON/Entity/DB_ResidenceData.cs
@@ -134,25 +134,6 @@
                             instance.SaveResidenceData();
                         }
 
-                        new Light()
-                        {
-                            sid = "030101123456780202010005ABCD",
-                            name = "鐏厜1",
-                            attributes = new List<FunctionAttributes>() {
-                                        new FunctionAttributes { key="on_off", max=100,min = 0, value= new List<string> { "on","off"} },
-                                        },
-                            roomIds = new List<string>() { "0001" },
-                            bus_Data = new BusData
-                            {
-                                addresses = "2A06",
-                                loopId = 1,
-                            },
-                        }.SaveFunctionData();
-
-
-                       
-                       
-
 
                     }
                     catch (Exception ex)
@@ -287,7 +268,21 @@
         public List<Room> Rooms = SpatialInfo.CurrentSpatial.RoomList;
 
         #region 鍔熻兘鏁版嵁
-        public static FunctionList functionList = FunctionList.List;
+        static FunctionList _functionList;
+        public static FunctionList functionList {
+            get
+            {
+                if(_functionList == null)
+                {
+                    _functionList = FunctionList.List;
+                }
+                return _functionList;
+            }
+            set
+            {
+                _functionList = value;
+            }
+        }
 
         #endregion
 

--
Gitblit v1.8.0