| | |
| | | |
| | | var btnAddFrameLayout = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(888), |
| | | X = Application.GetRealWidth(772 - 58), |
| | | Width = Application.GetRealWidth(192), |
| | | }; |
| | | this.titleFrameLayout.AddChidren(btnAddFrameLayout); |
| | |
| | | var btnBindAdd = new Button |
| | | { |
| | | X = Application.GetRealWidth(62), |
| | | Height = Application.GetRealHeight(72), |
| | | Width = Application.GetRealWidth(72), |
| | | Height = Application.GetMinReal(72), |
| | | Width = Application.GetMinReal(72), |
| | | UnSelectedImagePath = "BindPic/BindAdd.png", |
| | | }; |
| | | btnAddFrameLayout.AddChidren(btnBindAdd); |
| | |
| | | InitListInfo(); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 中部布局 |
| | | /// </summary> |
| | |
| | | { |
| | | midVerticalRefreshLayout = new VerticalFrameRefreshControl(29) |
| | | { |
| | | Height = this.midFrameLayout.Height + 1, |
| | | }; |
| | | this.midFrameLayout.AddChidren(midVerticalRefreshLayout); |
| | | midVerticalRefreshLayout.BeginHeaderRefreshingAction += () => |
| | |
| | | { |
| | | btnFloorRoomNameText = myName; |
| | | } |
| | | else |
| | | { |
| | | btnFloorRoomNameText = Language.StringByID(R.MyInternationalizationString.Undistributed); |
| | | } |
| | | } |
| | | } |
| | | else |
| | |
| | | var tempDevFloorName = Common.Config.Instance.Home.GetFloorNameById(tempDevFloorId); |
| | | if (string.IsNullOrEmpty(tempDevFloorName)) |
| | | { |
| | | if (string.IsNullOrEmpty(tempDevRoomName)) |
| | | { |
| | | btnFloorRoomNameText = Language.StringByID(R.MyInternationalizationString.Undistributed); |
| | | } |
| | | else |
| | | { |
| | | btnFloorRoomNameText = tempDevRoomName; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (string.IsNullOrEmpty(tempDevRoomName)) |
| | | { |
| | | btnFloorRoomNameText = Language.StringByID(R.MyInternationalizationString.Undistributed); |
| | | } |
| | | else |
| | | { |
| | | btnFloorRoomNameText = tempDevFloorName + "," + tempDevRoomName; |
| | | } |
| | | } |
| | | }
|
| | |
|
| | |
| | | else |
| | | { |
| | | var temp = await currentKey.ConfigureHdlKeyValueAsync(Panel.KeyMode.Default); |
| | | if (temp.setWritableValueResponData?.Status != 0) |
| | | if (temp != null && temp.setWritableValueResponData?.Status != 0) |
| | | { |
| | | var temp1 = await currentKey.ConfigureHdlKeyValueAsync(Panel.KeyMode.Default); |
| | | if (temp1.setWritableValueResponData?.Status != 0) |
| | | if (temp1 != null && temp1.setWritableValueResponData?.Status != 0) |
| | | { |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.ChangeBindMode), Direction = AMPopTipDirection.Up, CloseTime = 2 }.Show(btnDel); |
| | | } |
| | |
| | | |
| | | var sidelipFrameLayout = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(628), |
| | | Width = Application.GetRealWidth(415), |
| | | Height = Application.GetMinReal(628), |
| | | Width = Application.GetMinReal(415), |
| | | Y = Application.GetRealHeight(115 + 45), |
| | | X = Application.GetRealWidth(605), |
| | | BackgroundImagePath = "DoorLock/SideslipPic.png", |
| | |
| | | } |
| | | } |
| | | |
| | | int count = 0; |
| | | foreach (var value in typeModeList) |
| | | { |
| | | count++; |
| | | #region rowView |
| | | var rowView = new FrameLayout() |
| | | { |