From e5f993f52e09eb46878baced83bb8492f147d41c Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 04 十一月 2019 17:58:40 +0800
Subject: [PATCH] 2019-11-04-1

---
 ZigbeeApp/Shared/Phone/UserCenter/Residence/FloorListRoomForm.cs |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/FloorListRoomForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/FloorListRoomForm.cs
index 724b35e..51dfaf3 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/FloorListRoomForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/FloorListRoomForm.cs
@@ -20,10 +20,6 @@
         /// </summary>
         private string floorKeys = string.Empty;
         /// <summary>
-        /// 鍏ㄩ儴鐨勯『搴�
-        /// </summary>
-        private Dictionary<string, List<string>> dicAllSort = new Dictionary<string, List<string>>();
-        /// <summary>
         /// 鎴块棿椤哄簭
         /// </summary>
         private List<string> listRoomSort = new List<string>();
@@ -114,7 +110,7 @@
             listView.AddChidren(frameRow);
             //鍥炬爣
             var btnIcon = frameRow.frameTable.AddLeftIcon(81);
-            btnIcon.UnSelectedImagePath = "Item/RoomIcon.png";
+            btnIcon.UnSelectedImagePath = "Item/RoomIconSelected.png";
             //鍚嶇О
             var btnName = frameRow.frameTable.AddLeftCaption(room.Name, 600);
             btnName.TextSize = 15;
@@ -127,7 +123,8 @@
             }
             frameRow.frameTable.ButtonClickEvent += (sender, e) =>
             {
-
+                var form = new LookRoomSettionForm();
+                form.AddForm(room);
             };
 
             if (room.IsSharedRoom == true)
@@ -169,6 +166,12 @@
                         Common.Room.CurrentRoom = Common.Room.Lists[0];
                     }
                     Common.Room.CurrentRoom.Remove(room.FileName);
+                    //璋冩暣楂樺害
+                    frameRow.RemoveFromParent();
+                    listView.AdjustRealHeight(Application.GetRealHeight(23));
+                    //淇濆瓨椤哄簭
+                    this.listRoomSort.Remove(room.Id);
+                    Common.Room.CurrentRoom.SaveRoomSort(floorKeys, this.listRoomSort);
                 });
             };
         }

--
Gitblit v1.8.0