| | |
| | | rowFinger.AddChidren(btnEffect, ChidrenBindMode.NotBind);
|
| | | //开关按钮
|
| | | btnFingerSwicth = rowFinger.AddMostRightSwitchIcon();
|
| | | btnFingerSwicth.IsSelected = UserCenterResourse.AccountOption.FingerprintAuthentication;
|
| | | btnFingerSwicth.IsSelected = HdlUserCenterResourse.AccountOption.FingerprintAuthentication;
|
| | | //底线
|
| | | rowFinger.AddBottomLine();
|
| | | }
|
| | |
| | | rowPsw.AddRightArrow();
|
| | | //去设置
|
| | | var btnSettion1 = rowPsw.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uGotoSettion), 400);
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false)
|
| | | if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == false)
|
| | | {
|
| | | //去修改
|
| | | btnSettion1.TextID = R.MyInternationalizationString.uGotoEditor;
|
| | |
| | | rowGesture.AddRightArrow();
|
| | | //去设置
|
| | | var btnSettion2 = rowGesture.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uGotoSettion), 400);
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false)
|
| | | if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == false)
|
| | | {
|
| | | //去修改
|
| | | btnSettion2.TextID = R.MyInternationalizationString.uGotoEditor;
|
| | |
| | |
|
| | | //二次安全验证将用于下列操作
|
| | | var btnTitle = new NormalViewControl(800, 50, true);
|
| | | btnTitle.X = ControlCommonResourse.XXLeft;
|
| | | btnTitle.X = HdlControlResourse.XXLeft;
|
| | | btnTitle.Y = frameTop.Bottom + Application.GetRealHeight(34);
|
| | | btnTitle.TextSize = 12;
|
| | | btnTitle.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | |
| | | var btnLockSwicth = rowLock.AddMostRightSwitchIcon();
|
| | | //底线
|
| | | rowLock.AddBottomLine();
|
| | | btnLockSwicth.IsSelected = UserCenterResourse.AccountOption.DoorUnLockByRemote;
|
| | | btnLockSwicth.IsSelected = HdlUserCenterResourse.AccountOption.DoorUnLockByRemote;
|
| | |
|
| | | var rowSafety = new FrameRowControl(frameButtom.rowSpace / 2);
|
| | | rowSafety.UseClickStatu = false;
|
| | |
| | | rowPsw.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //如果没有密码验证
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == true)
|
| | | if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == true)
|
| | | {
|
| | | //如果设置有其他验证方式,则需要验证,否则直接跳过验证
|
| | | HdlCheckLogic.Current.CheckSecondarySecurity(
|
| | |
| | | rowGesture.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //如果没有手势验证
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == true)
|
| | | if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == true)
|
| | | {
|
| | | //如果设置有其他验证方式,则需要验证,否则直接跳过验证
|
| | | HdlCheckLogic.Current.CheckSecondarySecurity(
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | UserCenterResourse.AccountOption.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
|
| | | UserCenterResourse.AccountOption.Save();
|
| | | HdlUserCenterResourse.AccountOption.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
|
| | | HdlUserCenterResourse.AccountOption.Save();
|
| | | //重新刷新界面
|
| | | this.InitMiddleFrame();
|
| | | }
|
| | | else
|
| | | {
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == true
|
| | | && string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == true
|
| | | if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == true
|
| | | && string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == true
|
| | | && btnLockSwicth.IsSelected == true)
|
| | | {
|
| | | //所有验证都取消了,则取消远程开锁功能
|
| | | UserCenterResourse.AccountOption.DoorUnLockByRemote = false;
|
| | | HdlUserCenterResourse.AccountOption.DoorUnLockByRemote = false;
|
| | | }
|
| | | UserCenterResourse.AccountOption.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
|
| | | UserCenterResourse.AccountOption.Save();
|
| | | HdlUserCenterResourse.AccountOption.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
|
| | | HdlUserCenterResourse.AccountOption.Save();
|
| | | //重新刷新界面
|
| | | this.InitMiddleFrame();
|
| | | }
|
| | |
| | | private void DoRemoteUnLocks(MostRightIconControl btnLockSwicth)
|
| | | {
|
| | | if (btnLockSwicth.IsSelected == false
|
| | | && string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == true
|
| | | && string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == true)
|
| | | && string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == true
|
| | | && string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == true)
|
| | | {
|
| | | TouchIDUtils.TouchIDSupperType type = TouchIDUtils.getTouchIDSupperType();
|
| | | if (type == TouchIDUtils.TouchIDSupperType.None || UserCenterResourse.AccountOption.FingerprintAuthentication == false)
|
| | | if (type == TouchIDUtils.TouchIDSupperType.None || HdlUserCenterResourse.AccountOption.FingerprintAuthentication == false)
|
| | | {
|
| | | //远程开锁开启失败,请先设置{0}二次安全验证方式
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uUseUnLockByRemoteFailMsg);
|
| | |
| | | return;
|
| | | }
|
| | | }
|
| | | UserCenterResourse.AccountOption.DoorUnLockByRemote = !btnLockSwicth.IsSelected;
|
| | | UserCenterResourse.AccountOption.Save();
|
| | | HdlUserCenterResourse.AccountOption.DoorUnLockByRemote = !btnLockSwicth.IsSelected;
|
| | | HdlUserCenterResourse.AccountOption.Save();
|
| | | //重新刷新界面
|
| | | this.InitMiddleFrame();
|
| | | }
|
| | |
| | | if (textValue == check1 || textValue == check2 || textValue == check3)
|
| | | {
|
| | | //开启隐藏菜单
|
| | | UserCenterResourse.HideOption.CenterHideMenu = 1;
|
| | | HdlUserCenterResourse.HideOption.CenterHideMenu = 1;
|
| | | }
|
| | | }
|
| | | if (textValue == "84651666")
|
| | | {
|
| | | //显示设备历史版本
|
| | | UserCenterResourse.HideOption.DeviceHistory = 1;
|
| | | HdlUserCenterResourse.HideOption.DeviceHistory = 1;
|
| | | }
|
| | | if (textValue == "12349")
|
| | | {
|
| | | //强制跳转真实设备界面
|
| | | UserCenterResourse.HideOption.GotoRealDeviceForm = 1;
|
| | | HdlUserCenterResourse.HideOption.GotoRealDeviceForm = 1;
|
| | | }
|
| | | if (textValue == "12348")
|
| | | {
|
| | | //强制跳转网关界面
|
| | | UserCenterResourse.HideOption.GotoGatewayProductInfoForm = 1;
|
| | | HdlUserCenterResourse.HideOption.GotoGatewayProductInfoForm = 1;
|
| | | }
|
| | | if (textValue == "abcdef1")
|
| | | {
|
| | | //强制变更常开模式的时间为分钟
|
| | | UserCenterResourse.HideOption.DoorLockNomallyOpenTimeMode = 1;
|
| | | HdlUserCenterResourse.HideOption.DoorLockNomallyOpenTimeMode = 1;
|
| | | }
|
| | |
|
| | | this.ShowMassage(ShowMsgType.Tip, "Ok!");
|