| | |
| | | /// </summary> |
| | | private System.Collections.Generic.List<CommonDevice> localDeviceList = new System.Collections.Generic.List<CommonDevice>(); |
| | | /// <summary> |
| | | /// 本地场景列表 |
| | | /// 本地场景列表 |
| | | /// </summary> |
| | | private System.Collections.Generic.List<SceneUI> scList = new System.Collections.Generic.List<SceneUI> { }; |
| | | /// <summary> |
| | |
| | | } |
| | | currentKey.ReSave(); |
| | | } |
| | | #endregion |
| | | #endregion |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | RefreshList(); |
| | |
| | | } |
| | | /// <summary> |
| | | /// 按键绑定表显示 |
| | | /// </summary> |
| | | /// </summary> |
| | | async void RefreshList() |
| | | { |
| | | midVerticalRefreshLayout.RemoveAll(); |
| | | this.midFrameLayout.RemoveAll(); |
| | | middleFrameLayout(); |
| | | #region 数据处理 |
| | | #region 数据处理 |
| | | if (currentKey.bindList.Count == 0) |
| | | { |
| | | entryStatusPic.Height = Application.GetRealHeight(556); |
| | |
| | | |
| | | 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) => |
| | | { |
| | | RemoveTargets(bindDevice, btnDel); |
| | | btnDel.ButtonClickEvent += (sender, e) => |
| | | {
|
| | | RemoveTargets(bindDevice, btnDel);
|
| | | }; |
| | | #endregion |
| | | } |
| | |
| | | { |
| | | 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 = ""; |
| | |
| | | } |
| | | } |
| | | } |
| | | |