| | |
| | | btnEffect.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | rowFinger.AddChidren(btnEffect, ChidrenBindMode.NotBind);
|
| | | //开关按钮
|
| | | var btnFingerSwicth = rowFinger.AddMostRightEmptyIcon(104, 63);
|
| | | btnFingerSwicth.UnSelectedImagePath = "Item/Switch.png";
|
| | | btnFingerSwicth.SelectedImagePath = "Item/SwitchSelected.png";
|
| | | var btnFingerSwicth = rowFinger.AddMostRightSwitchIcon();
|
| | | btnFingerSwicth.IsSelected = UserCenterResourse.Option.FingerprintAuthentication;
|
| | | //底线
|
| | | rowFinger.AddBottomLine();
|
| | |
| | | btnUnLockByApp.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | rowLock.AddChidren(btnUnLockByApp, ChidrenBindMode.NotBind);
|
| | | //开关按钮
|
| | | var btnLockSwicth = rowLock.AddMostRightEmptyIcon(104, 63);
|
| | | btnLockSwicth.UnSelectedImagePath = "Item/Switch.png";
|
| | | btnLockSwicth.SelectedImagePath = "Item/SwitchSelected.png";
|
| | | var btnLockSwicth = rowLock.AddMostRightSwitchIcon();
|
| | | //底线
|
| | | rowLock.AddBottomLine();
|
| | | btnLockSwicth.IsSelected = UserCenterResourse.Option.DoorUnLockByRemote;
|
| | |
| | | {
|
| | | //开启指纹验证失败!请前往手机{0}设置开启指纹开锁验证
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uUseFingerprintAuthenticationFailMsg);
|
| | | if (msg.Contains("{0}") == true)
|
| | | {
|
| | | msg = string.Format(msg, "\r\n");
|
| | | }
|
| | | msg = msg.Replace("{0}", "\r\n");
|
| | | this.ShowMassage(ShowMsgType.Normal, msg);
|
| | | return;
|
| | | }
|
| | | //将Touch ID用于「ZigBee」{0}更改安防设置和开启门锁时使用
|
| | | string msg2 = Language.StringByID(R.MyInternationalizationString.uUseFingerprintAuthenticationMsg);
|
| | | msg2 = msg2.Replace("{0}", "\r\n");
|
| | | this.ShowMassage(ShowMsgType.Confirm, msg2, () =>
|
| | | {
|
| | | //如果设置有安全验证,想要修改它,必须先通过安全验证
|
| | | //如果没有设置有安全验证,则无需验证
|
| | | HdlCheckLogic.Current.CheckSecondarySecurity(
|
| | | () => { this.DoFingerprintAuthentication(btnFingerSwicth, btnLockSwicth); },//处理指纹验证
|
| | | () => { this.DoFingerprintAuthentication(btnFingerSwicth, btnLockSwicth); });//处理指纹验证
|
| | | });
|
| | | }
|
| | | //如果设置有安全验证,想要修改它,必须先通过安全验证
|
| | | //如果没有设置有安全验证,则无需验证
|
| | | HdlCheckLogic.Current.CheckSecondarySecurity(
|
| | | () => { this.DoFingerprintAuthentication(btnFingerSwicth, btnLockSwicth); },//处理指纹验证
|
| | | () => { this.DoFingerprintAuthentication(btnFingerSwicth, btnLockSwicth); });//处理指纹验证
|
| | | else
|
| | | {
|
| | | //如果设置有安全验证,想要修改它,必须先通过安全验证
|
| | | //如果没有设置有安全验证,则无需验证
|
| | | HdlCheckLogic.Current.CheckSecondarySecurity(
|
| | | () => { this.DoFingerprintAuthentication(btnFingerSwicth, btnLockSwicth); },//处理指纹验证
|
| | | () => { this.DoFingerprintAuthentication(btnFingerSwicth, btnLockSwicth); });//处理指纹验证
|
| | | }
|
| | | };
|
| | | //密码验证
|
| | | rowPsw.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new Password.EditorSecondaryPasswordForm();
|
| | | form.AddForm();
|
| | | //如果没有密码验证
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.Option.PswAuthentication) == true)
|
| | | {
|
| | | //如果设置有其他验证方式,则需要验证,否则直接跳过验证
|
| | | HdlCheckLogic.Current.CheckSecondarySecurity(
|
| | | () => { var form = new Password.EditorSecondaryPasswordForm(); form.AddForm(); },
|
| | | () => { var form = new Password.EditorSecondaryPasswordForm(); form.AddForm(); });
|
| | | }
|
| | | else
|
| | | {
|
| | | var form = new Password.EditorSecondaryPasswordForm();
|
| | | form.AddForm();
|
| | | }
|
| | | };
|
| | | //手势验证
|
| | | rowGesture.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //如果没有手势验证
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.Option.GestureAuthentication) == true)
|
| | | {
|
| | | //如果设置有其他验证方式,则需要验证,否则直接跳过验证
|
| | | HdlCheckLogic.Current.CheckSecondarySecurity(
|
| | | () => { var form = new Password.EditorGesturePasswordForm(); form.AddForm(); },
|
| | | () => { var form = new Password.EditorGesturePasswordForm(); form.AddForm(); });
|
| | | }
|
| | | else
|
| | | {
|
| | | var form = new Password.EditorGesturePasswordForm();
|
| | | form.AddForm();
|
| | | }
|
| | | };
|
| | | //远程开锁
|
| | | btnLockSwicth.ButtonClickEvent += (sender, e) =>
|
| | |
| | | this.ShowMassage(ShowMsgType.Normal, msg);
|
| | | return;
|
| | | }
|
| | | //将Touch ID用于「ZigBee」{0}更改安防设置和开启门锁时使用
|
| | | string msg2 = Language.StringByID(R.MyInternationalizationString.uUseFingerprintAuthenticationMsg);
|
| | | if (msg2.Contains("{0}") == true)
|
| | | {
|
| | | msg2 = string.Format(msg2, "\r\n");
|
| | | }
|
| | | this.ShowMassage(ShowMsgType.Confirm, msg2, () =>
|
| | | {
|
| | | UserCenterResourse.Option.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
|
| | | UserCenterResourse.Option.Save();
|
| | | //重新刷新界面
|
| | | this.InitMiddleFrame();
|
| | | });
|
| | |
|
| | | UserCenterResourse.Option.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
|
| | | UserCenterResourse.Option.Save();
|
| | | //重新刷新界面
|
| | | this.InitMiddleFrame();
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | /// <summary>
|
| | | /// 自身的上层界面关闭后,它自身处于最上层时,触发的事件
|
| | | /// </summary>
|
| | | public override void FormActionAgainEvent()
|
| | | public override int FormActionAgainEvent()
|
| | | {
|
| | | //重新刷新界面
|
| | | this.InitMiddleFrame();
|
| | |
|
| | | return 1;
|
| | | }
|
| | |
|
| | | #endregion
|