| | |
| | | |
| | | public FrameLayout bottomRadiusFrameLayout = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(906), |
| | | Height = Application.GetRealHeight(806), |
| | | Y = Application.GetRealHeight(930), |
| | | BackgroundColor = ZigbeeColor.Current.XMWhite, |
| | | }; |
| | |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMOrange, |
| | | TextSize = 14, |
| | | }; |
| | | |
| | | public Button line = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(138), |
| | | Height = 1, |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMRowLine, |
| | | }; |
| | | |
| | | #endregion |
| | | |
| | | /// <summary> |
| | |
| | | this.bottomRadiusFrameLayout.AddChidren(btnCancel); |
| | | this.bottomRadiusFrameLayout.AddChidren(btnBottomTitle); |
| | | this.bottomRadiusFrameLayout.AddChidren(btnFinish); |
| | | this.bottomRadiusFrameLayout.AddChidren(line); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | alert.ConfirmClickEvent += () => |
| | | { |
| | | var form = new UserCenter.UserMain.SecondAuthenticationForm(); |
| | | form.AddForm(); |
| | | }; |
| | | form.AddForm(); |
| | | }; |
| | | } |
| | | doorLock.ReSave(); |
| | | } |
| | |
| | | { |
| | | var form = new UserCenter.UserMain.SecondAuthenticationForm(); |
| | | form.AddForm(); |
| | | }; |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="btnDoorLockPic">门锁图片开/关显示</param> |
| | | public void RemoteUnlockRequest(ZigBee.Device.DoorLock doorLock, Action action, Button progressButton = null, Button btnDoorLockPic = null, Button btnStatus = null, Button btnDoorLockTitle = null) |
| | | { |
| | | if (doorLock.RemoteUnlockPassword == "") |
| | | if (string.IsNullOrEmpty(doorLock.RemoteUnlockPassword)) |
| | | { |
| | | string msgRemoteUnlockRequest = Language.StringByID(R.MyInternationalizationString.BindRemoteUnlockDoorlock); |
| | | var alertRemoteUnlockRequest = new Shared.Phone.UserCenter.ShowMsgControl(ShowMsgType.Confirm, msgRemoteUnlockRequest, Language.StringByID(R.MyInternationalizationString.GoSetting)); |
| | |
| | | //使用确认型弹框时,的回调函数 |
| | | alertRemoteUnlockRequest.ConfirmClickEvent += () => |
| | | { |
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1) |
| | | var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSetting.Show(); |
| | | functionSetting.devicNameAction += (deviceRename) => |
| | | { |
| | | var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSetting.Show(); |
| | | functionSetting.devicNameAction += (deviceRename) => |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | if (btnDoorLockTitle != null) |
| | | { |
| | | if (btnDoorLockTitle != null) |
| | | { |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | } |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | } |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | var functionSettingSub = new Shared.Phone.UserCenter.DoorLock.FunctionSettingSub(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSettingSub); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSettingSub.Show(); |
| | | functionSettingSub.devicNameAction += (deviceRename) => |
| | | { |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | if (btnDoorLockTitle != null) |
| | | { |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | }; |
| | | }; |
| | | return; |
| | | } |
| | |
| | | { |
| | | var form = new UserCenter.UserMain.SecondAuthenticationForm(); |
| | | form.AddForm(); |
| | | }; |
| | | }; |
| | | return; |
| | | } |
| | | |
| | |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.DoorlockPasswordDispear), Direction = AMPopTipDirection.Up, CloseTime = 2 }.Show(CommonPage.Instance); |
| | | CommonPage.Loading.Hide(); |
| | | doorLock.RemoteUnlockPassword = ""; |
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1) |
| | | var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSetting.Show(); |
| | | functionSetting.devicNameAction += (deviceRename) => |
| | | { |
| | | var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSetting.Show(); |
| | | functionSetting.devicNameAction += (deviceRename) => |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | if (btnDoorLockTitle != null) |
| | | { |
| | | if (btnDoorLockTitle != null) |
| | | { |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | } |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | } |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | var functionSettingSub = new Shared.Phone.UserCenter.DoorLock.FunctionSettingSub(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSettingSub); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSettingSub.Show(); |
| | | functionSettingSub.devicNameAction += (deviceRename) => |
| | | { |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | if (btnDoorLockTitle != null) |
| | | { |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | }; |
| | | }); |
| | | } |
| | | } |
| | |
| | | }); |
| | | }; |
| | | HdlCheckLogic.Current.CheckSecondarySecurity(action); |
| | | }; |
| | | }; |
| | | } |
| | | // 获取到到名称更改回调通知 |
| | | public Action<string> devicNameSecAction; |