From a5b3c4bae726ef6770d4bfcbf2f4b50a37ed4a15 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 06 三月 2020 15:31:36 +0800 Subject: [PATCH] 删除了郭雪城的 DeviceUi 这个类 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs index 8e3b0f0..b6a7c54 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs @@ -105,7 +105,7 @@ localDeviceList.Add(dev); } //鑾峰彇鏈湴鍦烘櫙鍒楄〃 - scList = Shared.Common.Room.AllRoomSceneUIList; + scList = HdlSceneLogic.Current.GetAllRoomSceneList(); //鑾峰彇缃戝叧鍦烘櫙琛� var gwSceneObj = await currentKey.GetSceneInfoAsync(); if (gwSceneObj != null && gwSceneObj.getSceneInfo != null) @@ -472,7 +472,7 @@ } if (isExistScene) { - curSceneUI = Room.CurrentRoom.GetSceneUIBySceneId(bindDevice.BindScenesId); + curSceneUI = HdlSceneLogic.Current.GetSceneUIBySceneId(bindDevice.BindScenesId); devicePic.UnSelectedImagePath = "Scene/SceneIcon.png"; if (curSceneUI == null) { @@ -488,9 +488,10 @@ else { btnBindNameText = curSceneUI.Name; - if (curSceneUI.GetZone() != null) + string myName = HdlSceneLogic.Current.GetZoneById(curSceneUI.Id); + if (myName != null) { - btnFloorRoomNameText = curSceneUI.GetZone(); + btnFloorRoomNameText = myName; } } } @@ -503,7 +504,7 @@ if (tempDev != null) { //鑾峰彇璁惧鎵�灞炴埧闂� - var tempDevRoom = Common.Room.CurrentRoom.GetRoomByDevice(tempDev); + var tempDevRoom = HdlRoomLogic.Current.GetRoomByDevice(tempDev); if (tempDevRoom != null) { @@ -520,14 +521,12 @@ { btnFloorRoomNameText = tempDevFloorName + "," + tempDevRoomName; } - } - var deviceUi = Common.LocalDevice.Current.GetDeviceUI(tempDev); - if (deviceUi != null) - { - devicePic.UnSelectedImagePath = deviceUi.IconPath; - devicePic.Width = Application.GetRealWidth(110); - devicePic.Text = ""; - } + } + + devicePic.UnSelectedImagePath = tempDev.IconPath; + devicePic.Width = Application.GetRealWidth(110); + devicePic.Text = ""; + if (string.IsNullOrEmpty(tempDev.DeviceEpointName)) { btnBindNameText = tempDev.DeviceEpoint + Language.StringByID(R.MyInternationalizationString.uDeviceCircuit); -- Gitblit v1.8.0