| | |
| | | { |
| | | etAccount.TextChangeEventHandler += (sender, e) => |
| | | { |
| | | Regex reg = new Regex(@"^[1]+\d{9}"); |
| | | Regex reg = new Regex(@"^[1]+\d{10}"); |
| | | var mFalg = reg.Match(etAccount.Text.Trim()); |
| | | if (!mFalg.Success || (btnGlobalRoaming.Text == "+86" && etAccount.Text.Trim().Length != 11)) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | btnGetVerificationCode.IsSelected = true; |
| | | if (btnGetVerificationCode.Text == Language.StringByID(StringId.GetVerificationCode)) |
| | | { |
| | | btnGetVerificationCode.IsSelected = true; |
| | | } |
| | | } |
| | | }; |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | btnGetVerificationCode.IsSelected = true; |
| | | if (btnGetVerificationCode.Text == Language.StringByID( StringId.GetVerificationCode)) |
| | | { |
| | | btnGetVerificationCode.IsSelected = true; |
| | | } |
| | | LoadMothed_EnableResetButton(); |
| | | } |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | btnGetVerificationCode.IsSelected = true; |
| | | if (btnGetVerificationCode.Text == Language.StringByID(StringId.GetVerificationCode)) |
| | | { |
| | | btnGetVerificationCode.IsSelected = true; |
| | | } |
| | | LoadMothed_EnableResetButton(); |
| | | } |
| | | } |
| | |
| | | { |
| | | CloseTime = 3, |
| | | Direction = AMPopTipDirection.None, |
| | | Text = Language.StringByID(StringId.IncorrectRepeatPassword) |
| | | Text = Language.StringByID(StringId.PasswordIsUnqualified) |
| | | }.Show(bodyView); |
| | | } |
| | | } |
| | |
| | | { |
| | | btnGetVerificationCode.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var account = etAccount.Text.Trim(); |
| | | if (btnGetVerificationCode.IsSelected) |
| | | { |
| | | //短信发送间隔60s |
| | |
| | | }); |
| | | Thread.Sleep(1000); |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //回复获取短信按钮事件 |
| | | btnGetVerificationCode.IsSelected = true; |
| | | btnGetVerificationCode.TextID = StringId.GetVerificationCode; |
| | | }); |
| | | }){ IsBackground = true}.Start(); |
| | | new Thread(() => |
| | | { |
| | | var result = pm.SendSms(etAccount.Text.Trim()); |
| | | if (result.StateCode == "Success") |
| | | var result = pm.SendSms(account); |
| | | if (result.StateCode.ToUpper() == "SUCCESS") |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //回复获取短信按钮事件 |
| | | btnGetVerificationCode.IsSelected = true; |
| | | btnGetVerificationCode.TextID = StringId.GetVerificationCode; |
| | | }); |
| | | } |
| | | else |
| | | { |
| | |
| | | return new Thread(() => |
| | | { |
| | | var verResult = pm.ValidatorCode(account, verCode, countryIndex); |
| | | if (verResult.StateCode == "Success") |
| | | if (verResult.StateCode.ToUpper() == "SUCCESS") |
| | | { |
| | | var resetResult = pm.ResetPassword(account, password, repeatPassword, countryIndex); |
| | | if (resetResult.StateCode == "Success") |
| | | if (resetResult.StateCode.ToUpper() == "SUCCESS") |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = "s是生生世世", |
| | | //Text = "s是生生世世", |
| | | }; |
| | | frame.AddChidren(btnAccountText); |
| | | |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextID = StringId.AutomaticallyLogin, |
| | | }; |
| | | frame.AddChidren(btnAutoLoginTip); |
| | | //frame.AddChidren(btnAutoLoginTip); |
| | | |
| | | Button btnHeadImage = new Button() |
| | | { |
| | |
| | | Thread.Sleep(1500); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | dialog.Close(); |
| | | this.Close(); |
| | | }); |
| | | }) |