From 00ab3ddb140ba8bb88b5cf572b004a85e1da85e9 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期四, 02 一月 2020 19:51:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into DEV_GXC --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs | 18 ++++-------------- 1 files changed, 4 insertions(+), 14 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs index 3d6dcec..850137d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs @@ -76,26 +76,16 @@ var listDevice = Common.LocalDevice.Current.GetDevicesByMac(this.deviceMac); //鍥炬爣 btnIcon = frameTable.AddLeftIcon(81); - Common.LocalDevice.Current.SetDeviceBeloneIconToControl(btnIcon, listDevice); + Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice); //璁惧 string deviceName = Common.LocalDevice.Current.GetDeviceMacName(listDevice[0]); - btnDeviceName = frameTable.AddLeftCaption(deviceName, 800, 60, true); - btnDeviceName.TextSize = 15; - //杩欎釜鍧愭爣鏈夌偣鐗规畩 - btnDeviceName.Y = Application.GetRealHeight(12) + this.chidrenYaxis; - btnDeviceName.Text = Common.LocalDevice.Current.GetDeviceObjectText(listDevice); + btnDeviceName = frameTable.AddTopView(deviceName, 800); frameTable.AddChidren(btnDeviceName, ChidrenBindMode.BindEventOnly); //鎴块棿 string roomName = Common.LocalDevice.Current.GeteRealDeviceRoomName(listDevice[0]); - btnDeviceRoom = frameTable.AddLeftCaption(roomName, 800, 49, true); - //杩欎釜鍧愭爣鏈夌偣鐗规畩 - btnDeviceRoom.Y = Application.GetRealHeight(72) + this.chidrenYaxis; - btnDeviceRoom.TextSize = 12; - btnDeviceRoom.TextColor = UserCenterColor.Current.TextGrayColor1; - btnDeviceRoom.Text = Common.LocalDevice.Current.GetDeviceMacName(listDevice[0]); - frameTable.AddChidren(btnDeviceRoom, ChidrenBindMode.BindEventOnly); + btnDeviceRoom = frameTable.AddBottomView(roomName, 800); //搴曠嚎 frameTable.AddBottomLine(); @@ -138,7 +128,7 @@ var listDevice = Common.LocalDevice.Current.GetDevicesByMac(this.deviceMac); //鍥炬爣 - Common.LocalDevice.Current.SetDeviceBeloneIconToControl(btnIcon, listDevice); + Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice); //璁惧 btnDeviceName.Text = Common.LocalDevice.Current.GetDeviceMacName(listDevice[0]); //璁惧鎴块棿 -- Gitblit v1.8.0