From 163777d8a2cb7cfa469f54a7042528870ebc10a3 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 09 十二月 2019 17:46:20 +0800
Subject: [PATCH] 一个新版本

---
 ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs b/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs
index 709f0be..fca2cd7 100755
--- a/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs
@@ -245,8 +245,6 @@
         {
             SelectAll = selectAll;
             //閫夋嫨鍔熻兘--鐩存帴浠庢埧闂寸殑devicelist涓幏鍙�
-            Shared.Common.Room.GetAllRoomDeviceUIList();
-            Shared.Common.Room.GetAllRoomDeviceTypeList();
             if (Common.Room.AllRoomDeviceUIList == null)
             {
                 return;
@@ -280,6 +278,7 @@
                 
 
                 tempFunctionTypeBtn = new FunctionButton();
+                tempFunctionTypeBtn.Init("", "");
 
                 foreach (var deviceType in Common.Room.AllRoomDeviceTypeList)
                 {
@@ -300,9 +299,8 @@
                     typeRowLayout.AddChidren(functionTypeIMG);
 
 
-                    functionTypeIMG.ImageBtn.MouseUpEventHandler += ShowSameTypeFunction;
-                    functionTypeIMG.NameBtn.MouseUpEventHandler += ShowSameTypeFunction;
-                    functionTypeIMG.ImageBG.MouseUpEventHandler += ShowSameTypeFunction;
+                    functionTypeIMG.ClickBtn.MouseUpEventHandler += ShowSameTypeFunction;
+                    
 
                     if (deviceType == Shared.Common.Room.AllRoomDeviceUIList[0].CommonDevice.Type)
                     {
@@ -320,7 +318,6 @@
         private void ShowSameTypeFunction(object typeSender, MouseEventArgs mouseEventArgs)
         {
             //閫夋嫨鍔熻兘--鐩存帴浠庢埧闂寸殑devicelist涓幏鍙�
-            Shared.Common.Room.GetAllRoomDeviceUIList();
             tempFunctionTypeBtn.IsSelected = false;
             tempFunctionTypeBtn = (typeSender as Button).Parent as FunctionButton;
             ((typeSender as Button).Parent as FunctionButton).IsSelected = true;

--
Gitblit v1.8.0