| | |
| | | }; |
| | | BodyView.AddChidren (ResetPasswrodView); |
| | | |
| | | var viewX = (Application.GetRealWidth (640) - Application.GetMinRealAverage (500)) / 2; |
| | | var curPasswordView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (500), |
| | | Height = Application.GetRealHeight (90), |
| | | X = Application.GetRealWidth (70), |
| | | Width = Application.GetMinRealAverage (500), |
| | | Height = Application.GetMinRealAverage (90), |
| | | X = viewX, |
| | | Y = Application.GetRealHeight (200), |
| | | BackgroundImagePath = "Register/Register_Password_kuang.png", |
| | | }; |
| | |
| | | curPasswordView.AddChidren (etCurPassword); |
| | | |
| | | var newPasswordView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (500), |
| | | Height = Application.GetRealHeight (90), |
| | | X = Application.GetRealWidth (70), |
| | | Width = Application.GetMinRealAverage (500), |
| | | Height = Application.GetMinRealAverage (90), |
| | | X = viewX, |
| | | Y = curPasswordView.Bottom + Application.GetRealHeight (70), |
| | | BackgroundImagePath = "Register/Register_Password_kuang.png", |
| | | Radius = (uint)Application.GetRealHeight (0), |
| | |
| | | newPasswordView.AddChidren (etNewPassword); |
| | | |
| | | var confrimFpasswordView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (500), |
| | | Height = Application.GetRealHeight (90), |
| | | X = Application.GetRealWidth (70), |
| | | Width = Application.GetMinRealAverage (500), |
| | | Height = Application.GetMinRealAverage (90), |
| | | X = viewX, |
| | | Y = newPasswordView.Bottom + Application.GetRealHeight (70), |
| | | BackgroundImagePath = "Register/Register_Password_kuang.png", |
| | | }; |
| | |
| | | if (string.IsNullOrEmpty (etNewPassword.Text.Trim ())) { |
| | | new Alert ("", Language.StringByID (R.MyInternationalizationString.NewPasswordIsEmpty), |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | | } else if (!string.IsNullOrEmpty(MainPage.LoginUser.Name) && etNewPassword.Text.Trim ().Contains (MainPage.LoginUser.Name)) { |
| | | //密码不能包含用户名 |
| | | new Alert ("", ErrorCode.PasswordNotUsername, |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | | return; |
| | | } else if (!CommonUtlis.Current.CheckPassword (etNewPassword.Text.Trim ())) { |
| | | new Alert ("", ErrorCode.PasswordStrengthNotMatch, |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | | //return; |
| | | } else if (etNewPassword.Text.Trim () != etConfrimPassword.Text.Trim ()) { |
| | | new Alert ("", Language.StringByID (R.MyInternationalizationString.PleaseConfirmPasswordIsCorrect), |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |