From e90209beae6a4e822cecb18e6889f8bda23f630e Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 14 十二月 2020 11:16:06 +0800 Subject: [PATCH] 合并了晾衣架(非新云端) --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswGestureSecirityForm.cs | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Common/Form/PswGestureSecirityForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswGestureSecirityForm.cs similarity index 83% rename from ZigbeeApp/Shared/Phone/Common/Form/PswGestureSecirityForm.cs rename to ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswGestureSecirityForm.cs index 317fa4e..a40b222 100644 --- a/ZigbeeApp/Shared/Phone/Common/Form/PswGestureSecirityForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswGestureSecirityForm.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace Shared.Phone +namespace Shared.Phone.UserCenter { /// <summary> /// 鎵嬪娍瀵嗙爜楠岃瘉鐣岄潰 @@ -59,15 +59,15 @@ }; gestureControl.FinishInputEvent += (Password, pswLeng) => { - if (HdlUserCenterResourse.AccountOption.GestureAuthentication != Password) + if (UserCenterResourse.AccountOption.GestureAuthentication != Password) { - HdlUserCenterResourse.AccountOption.PasswordGestureInputCount--; - if (HdlUserCenterResourse.AccountOption.PasswordGestureInputCount <= 0) + UserCenterResourse.AccountOption.PasswordGestureInputCount--; + if (UserCenterResourse.AccountOption.PasswordGestureInputCount <= 0) { //绠$悊鍛樿韩浠介獙璇佸け璐�,璇烽噸鏂扮櫥褰� string msg2 = Language.StringByID(R.MyInternationalizationString.uCheckAdministratorFailAndReload); this.ShowMassage(ShowMsgType.Tip, msg2); - HdlAccountLogic.Current.ReLoginAgain(Common.Config.Instance.Account); + UserCenterLogic.ReLoginAgain(Common.Config.Instance.Account); return; } //瀵嗙爜閿欒锛岃閲嶆柊杈撳叆 @@ -75,7 +75,7 @@ return; } //閲嶇疆鍓╀綑瀵嗙爜娆℃暟 - HdlUserCenterResourse.AccountOption.ResetPasswordCount(); + UserCenterResourse.AccountOption.ResetPasswordCount(); //鐣岄潰鍏抽棴 this.CloseForm(); SuccessAction?.Invoke(); @@ -86,7 +86,7 @@ var btnTouch = new BottomLeftClickButton(frameBack.Width / 2, Application.GetRealHeight(127)); frameBack.AddChidren(btnTouch); btnTouch.InitControl(i_TouchText); - if (HdlUserCenterResourse.AccountOption.FingerprintAuthentication == false) + if (UserCenterResourse.AccountOption.FingerprintAuthentication == false) { //娌℃湁鍚敤Touch ID btnTouch.CanClick = false; @@ -117,16 +117,16 @@ TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent = null; //瀵嗙爜楠岃瘉 - if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == false) + if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false) { var form = new PswSecondarySecurityForm(); - this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); + this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); } //鎵嬪娍楠岃瘉 - else if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == false) + else if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false) { var form = new PswGestureSecirityForm(); - this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); + this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); } else { @@ -142,7 +142,7 @@ var btnPsw = new BottomRightClickButton(frameBack.Width - btnTouch.Width, btnTouch.Height); frameBack.AddChidren(btnPsw); btnPsw.InitControl(i_PasswordText); - if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == true) + if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == true) { //娌℃湁鍚敤瀵嗙爜寮�閿� btnPsw.CanClick = false; @@ -150,7 +150,7 @@ btnPsw.ButtonClickEvent += (sender, e) => { var form = new PswSecondarySecurityForm(); - this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); + this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); }; } -- Gitblit v1.8.0