| | |
| | | } |
| | | if (isExistScene) |
| | | { |
| | | curSceneUI = HdlSceneLogic.Current.GetSceneUIBySceneId(bindDevice.BindScenesId);
|
| | | curSceneUI = HdlSceneLogic.Current.GetSceneUIBySceneId(bindDevice.BindScenesId); |
| | | devicePic.UnSelectedImagePath = "Scene/SceneIcon.png"; |
| | | if (curSceneUI == null) |
| | | { |
| | |
| | | btnFloorRoomNameText = tempDevFloorName + "," + tempDevRoomName; |
| | | } |
| | | } |
| | | }
|
| | | } |
| | | else |
| | | { |
| | | btnFloorRoomNameText = Language.StringByID(R.MyInternationalizationString.Undistributed); |
| | | } |
| | |
|
| | | devicePic.UnSelectedImagePath = tempDev.IconPath;
|
| | | |
| | | devicePic.UnSelectedImagePath = tempDev.IconPath; |
| | | devicePic.Text = ""; |
| | | |
| | | if (string.IsNullOrEmpty(tempDev.DeviceEpointName)) |
| | |
| | | rowLayout.frameTable.AddBottomLine(); |
| | | var btnDel = rowLayout.AddDeleteControl(); |
| | | btnDel.ButtonClickEvent += (sender, e) => |
| | | {
|
| | | RemoveTargets(bindDevice, btnDel);
|
| | | { |
| | | RemoveTargets(bindDevice, btnDel); |
| | | }; |
| | | #endregion |
| | | } |
| | |
| | | /// <param name="btnDel"></param> |
| | | /// <returns></returns> |
| | | private int RemoveTargets(BindListResponseObj bindDevice, Button btnDel) |
| | | {
|
| | | { |
| | | int result = -1; |
| | | var delDevice = new DelDeviceBindData(); |
| | | delDevice.DeviceAddr = currentKey.DeviceAddr; |