From f6b3446e3a4afc0f65814be87aaa0f5ea0c62d69 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期一, 28 十月 2019 10:50:30 +0800 Subject: [PATCH] 2019.10.28 --- 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 100644 --- 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