| | |
| | | |
| | | var rowLayout = new RowLayoutControl(midVerticalRefreshLayout.rowSpace / 2); |
| | | rowLayout.BackgroundColor = ZigbeeColor.Current.XMWhite; |
| | | midVerticalRefreshLayout.AddChidrenRow(rowLayout); |
| | | midVerticalRefreshLayout.AddChidren2(rowLayout); |
| | | rowLayout.frameTable.UseClickStatu = false; |
| | | var devicePic = rowLayout.frameTable.AddLeftIcon(); |
| | | devicePic.Y = Application.GetRealHeight(49); |
| | |
| | | //获取房间的名字 |
| | | var tempDevRoomName = tempDevRoom.Name; |
| | | //获取楼层的名字 |
| | | var tempDevFloorName = Common.Config.Instance.Home.GetFloorNameById(tempDevFloorId); |
| | | var tempDevFloorName = HdlResidenceLogic.Current.GetFloorNameById(tempDevFloorId); |
| | | if (string.IsNullOrEmpty(tempDevFloorName)) |
| | | { |
| | | if (string.IsNullOrEmpty(tempDevRoomName)) |
| | |
| | | var btnFloorRoomName = rowLayout.frameTable.AddBottomView(btnFloorRoomNameText, 800); |
| | | rowLayout.frameTable.AddBottomLine(); |
| | | var btnDel = rowLayout.AddDeleteControl(); |
| | | btnDel.ButtonClickEvent += async (sender, e) => |
| | | btnDel.ButtonClickEvent += (sender, e) => |
| | | { |
| | | RemoveTargets(bindDevice, btnDel); |
| | | }; |
| | |
| | | { |
| | | var modeRowLayout = new RowLayoutControl(midVerticalRefreshLayout.rowSpace / 2); |
| | | modeRowLayout.BackgroundColor = ZigbeeColor.Current.XMWhite; |
| | | midVerticalRefreshLayout.AddChidrenRow(modeRowLayout); |
| | | midVerticalRefreshLayout.AddChidren2(modeRowLayout); |
| | | modeRowLayout.frameTable.UseClickStatu = false; |
| | | modeRowLayout.frameTable.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.keyMode), 400); |
| | | var btnKeyModeTipText = ""; |
| | |
| | | } |
| | | } |
| | | } |
| | | |