| | |
| | | localDeviceList.Add(dev); |
| | | } |
| | | //获取本地场景列表 |
| | | scList = Shared.Common.Room.AllRoomSceneUIList; |
| | | scList = HdlSceneLogic.Current.GetAllRoomSceneList(); |
| | | //获取网关场景表 |
| | | var gwSceneObj = await currentKey.GetSceneInfoAsync(); |
| | | if (gwSceneObj != null && gwSceneObj.getSceneInfo != null) |
| | |
| | | } |
| | | if (isExistScene) |
| | | { |
| | | curSceneUI = Room.CurrentRoom.GetSceneUIBySceneId(bindDevice.BindScenesId);
|
| | | curSceneUI = HdlSceneLogic.Current.GetSceneUIBySceneId(bindDevice.BindScenesId);
|
| | | devicePic.UnSelectedImagePath = "Scene/SceneIcon.png"; |
| | | if (curSceneUI == null) |
| | | { |
| | |
| | | else |
| | | { |
| | | btnBindNameText = curSceneUI.Name; |
| | | if (curSceneUI.GetZone() != null) |
| | | string myName = HdlSceneLogic.Current.GetZoneById(curSceneUI.Id); |
| | | if (myName != null) |
| | | { |
| | | btnFloorRoomNameText = curSceneUI.GetZone(); |
| | | btnFloorRoomNameText = myName; |
| | | } |
| | | } |
| | | } |
| | |
| | | if (tempDev != null) |
| | | { |
| | | //获取设备所属房间 |
| | | var tempDevRoom = Common.Room.CurrentRoom.GetRoomByDevice(tempDev); |
| | | var tempDevRoom = HdlRoomLogic.Current.GetRoomByDevice(tempDev); |
| | | |
| | | if (tempDevRoom != null) |
| | | { |
| | |
| | | { |
| | | 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); |