| | |
| | | /// <param name="common">Common.</param> |
| | | public void Changed(CommonDevice common) |
| | | { |
| | | //if (common.Type != ZigBee.Device.DeviceType.OnOffSwitch) |
| | | //{ |
| | | // return; |
| | | //} |
| | | |
| | | Shared.Application.RunOnMainThread(() => |
| | | { |
| | | //var dev = common as Panel; |
| | | }); |
| | | } |
| | | /// 构造函数 |
| | |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.CloudServerResponseOvertime), Direction = AMPopTipDirection.Up, CloseTime = 1 }.Show(this.btnTip); |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.CloudServerResponseOvertime), Direction = AMPopTipDirection.Down, CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | | }); |
| | | } |
| | | } |
| | |
| | | |
| | | var btnAddFrameLayout = new FrameLayout |
| | | { |
| | | X = Application.GetRealWidth(829), |
| | | X = Application.GetRealWidth(829 - 116), |
| | | Height = Application.GetRealHeight(72), |
| | | Width = Application.GetRealWidth(190), |
| | | }; |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | btnAddFrameLayout.AddChidren(btnUndistributeText); |
| | | |
| | | if (UserCenterResourse.UserInfo.AuthorityNo != 1) |
| | | { |
| | | btnUndistributeIcon.Width = 0; |
| | | btnUndistributeText.Width = 0; |
| | | } |
| | | EventHandler<MouseEventArgs> eHandler = (sender, e) => |
| | | { |
| | | var undistributeDoorlockUserPage = new Shared.Phone.UserCenter.DoorLock.UndistributeDoorlockUserPage(doorLock, doorLock.localAllAccountList); |
| | |
| | | }; |
| | | this.midFrameLayout.AddChidren(midVerticalScrolViewLayout); |
| | | ReadAccountList(); |
| | | // MidFrameLayoutContent(); |
| | | } |
| | | |
| | | async void MidFrameLayoutContent() |
| | |
| | | var currentAccount = doorLock.localAllAccountList[i]; |
| | | var RowView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(161), |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMTopFrameLayout, |
| | | Height = Application.GetRealHeight(127 + 23), |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMWhite, |
| | | }; |
| | | midVerticalScrolViewLayout.AddChidren(RowView); |
| | | |