From a5b3c4bae726ef6770d4bfcbf2f4b50a37ed4a15 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 06 三月 2020 15:31:36 +0800
Subject: [PATCH] 删除了郭雪城的 DeviceUi 这个类

---
 ZigbeeApp/Shared/Common/House.cs |   37 +++++++++++++++++--------------------
 1 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/House.cs b/ZigbeeApp/Shared/Common/House.cs
index d734fa2..7da0b22 100755
--- a/ZigbeeApp/Shared/Common/House.cs
+++ b/ZigbeeApp/Shared/Common/House.cs
@@ -57,9 +57,9 @@
         public double Latitude = 0;
 
         /// <summary>
-        /// 鎴块棿璺緞鍒楄〃
+        /// 鎴块棿鍒楄〃(鎴块棿鐨処D)
         /// </summary>
-        public List<string> RoomFilePathList = new List<string> { };
+        public List<string> ListRooms = new List<string>();
 
         /// <summary>
         /// 妤煎眰瀛楀吀
@@ -443,10 +443,11 @@
             }
             return null;
         }
+
         /// <summary>
-        /// InitFloor
+        /// 璁剧疆褰撳墠妤煎眰鐨処D
         /// </summary>
-        public  void InitFloor()
+        public void SetCurrentFloorId()
         {
             if (Config.Instance.Home.FloorDics.Count > 0 && string.IsNullOrEmpty(CurrentFloorId))
             {
@@ -466,19 +467,17 @@
         #region 鈼� 娣诲姞鎴块棿璺緞_________________________
 
         /// <summary>
-        /// 娣诲姞銆愭埧闂磋矾寰勩�戝埌鎴块棿璺緞鍒楄〃
+        /// 娣诲姞鎴块棿ID
         /// </summary>
         /// <returns><c>true</c>, if room list file path was added, <c>false</c> otherwise.</returns>
         /// <param name="roomFilePath">Room file path.</param>
-        public bool AddRoomListFilePath(string roomFilePath)
+        public void AddRoomId(string roomId)
         {
-            if (RoomFilePathList.Contains(roomFilePath))
-            {
-                return false;
+            if (ListRooms.Contains(roomId) == false)
+            {
+                ListRooms.Add(roomId);
+                this.Save();
             }
-            RoomFilePathList.Add(roomFilePath);
-            Save();
-            return true;
         }
 
         #endregion
@@ -486,19 +485,17 @@
         #region 鈼� 鍒犻櫎鎴块棿璺緞_________________________
 
         /// <summary>
-        /// 绉婚櫎鎴块棿璺緞
+        /// 绉婚櫎鎴块棿Id
         /// </summary>
         /// <returns><c>true</c>, if room list file path was added, <c>false</c> otherwise.</returns>
         /// <param name="roomFilePath">Room file path.</param>
-        public bool RemoveRoomListFilePath(string roomFilePath)
+        public void RemoveRoomId(string roomId)
         {
-            if (!RoomFilePathList.Contains(roomFilePath))
-            {
-                return false;
+            if (ListRooms.Contains(roomId)==true)
+            {
+                ListRooms.Remove(roomId);
+                Save();
             }
-            RoomFilePathList.Remove(roomFilePath);
-            Save();
-            return true;
         }
 
         #endregion

--
Gitblit v1.8.0