From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 28 二月 2020 15:25:13 +0800
Subject: [PATCH] 2020.2.28

---
 ZigbeeApp/Shared/Phone/UserCenter/Residence/FloorListRoomForm.cs |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/FloorListRoomForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/FloorListRoomForm.cs
index 724b35e..d5c6847 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>();
@@ -42,15 +38,19 @@
             //璁剧疆澶撮儴淇℃伅
             base.SetTitleText(Common.Config.Instance.Home.FloorDics[i_floor]);
 
-            var btnIcon = new MostRightIconControl(69, 69);
-            btnIcon.UnSelectedImagePath = "Item/Add.png";
-            topFrameLayout.AddChidren(btnIcon);
-            btnIcon.InitControl();
-            btnIcon.ButtonClickEvent += ((sender, e) =>
+            //涓讳汉鎴栬�呯鐞嗗憳鎵嶄細鍑虹幇杩欎釜鑿滃崟
+            if (UserCenterResourse.UserInfo.AuthorityNo == 1 || UserCenterResourse.UserInfo.AuthorityNo == 2)
             {
-                var form = new AddNewRoomForm();
-                form.AddForm(i_floor);
-            });
+                var btnIcon = new MostRightIconControl(69, 69);
+                btnIcon.UnSelectedImagePath = "Item/Add.png";
+                topFrameLayout.AddChidren(btnIcon);
+                btnIcon.InitControl();
+                btnIcon.ButtonClickEvent += ((sender, e) =>
+                {
+                    var form = new AddNewRoomForm();
+                    form.AddForm(i_floor);
+                });
+            }
 
             //鍒濆鍖栦腑閮ㄤ俊鎭�
             this.InitMiddleFrame();
@@ -114,7 +114,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 +127,8 @@
             }
             frameRow.frameTable.ButtonClickEvent += (sender, e) =>
             {
-
+                var form = new LookRoomSettionForm();
+                form.AddForm(room);
             };
 
             if (room.IsSharedRoom == true)
@@ -169,6 +170,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