From 8b4d79ca03495e522a1953e04ca17527f33c853a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 28 十月 2019 13:22:17 +0800 Subject: [PATCH] 合并完成代码 --- ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs b/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs index 709f0be..55a51f1 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; @@ -300,9 +298,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 +317,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