| | |
| | | if (bodyPageView.ChildrenCount - 2 == e) { |
| | | bodyPageView.RemoveAt (bodyPageView.ChildrenCount - 1); |
| | | } |
| | | Console.WriteLine ("D" + e.ToString ()); |
| | | Utlis.WriteLine ("D" + e.ToString ()); |
| | | }; |
| | | |
| | | FrameLayout bodyView = new FrameLayout (); |
| | |
| | | void EmailForgot (FrameLayout FrameLayoutView) |
| | | { |
| | | FrameLayoutView.RemoveAll (); |
| | | var viewX = (Application.GetRealWidth (640) - Application.GetMinRealAverage (500)) / 2; |
| | | EditText Register_Email_Address = new EditText () { |
| | | Width = Application.GetRealWidth (500), |
| | | Height = Application.GetRealHeight (85), |
| | | X = Application.GetRealWidth (70), |
| | | Width = Application.GetMinRealAverage (500), |
| | | Height = Application.GetMinRealAverage (85), |
| | | X = viewX, |
| | | Y = Application.GetRealHeight (100), |
| | | UnSelectedImagePath = "Register/Register_Email_Address.png", |
| | | PlaceholderText = Language.StringByID (R.MyInternationalizationString.EmailAddress), |
| | | PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor, |
| | | PlaceholderText = Language.StringByID (R.MyInternationalizationString.EmailAddress), |
| | | TextAlignment = TextAlignment.Center, |
| | | Radius = (uint)Application.GetRealHeight (0), |
| | | TextColor = SkinStyle.Current.TextColor1, |
| | |
| | | try { |
| | | Register_Send.IsSelected = false; |
| | | |
| | | var reg = new Regex ("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+\\.)+\\w{2,5})\\s*$"); |
| | | var ss = reg.Match (emailAccount); |
| | | //var reg = new Regex ("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+\\.)+\\w{2,5})\\s*$"); |
| | | //var ss = reg.Match (emailAccount); |
| | | |
| | | if (!ss.Success) { |
| | | if (!CommonUtlis.Current.CheckEmail (emailAccount)) { |
| | | Application.RunOnMainThread (() => { |
| | | new Alert ("", Language.StringByID (R.MyInternationalizationString.PleaseCheckEmailAddressCorrectly), |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | |
| | | } else { |
| | | var requestObj = new YdForgetPasswordObj () { Account = emailAccount, Company = MainPage.SoftSmsType }; |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | var requestRevertObj = MainPage.RequestHttps (API.YdForgetPassword, requestJson, false); |
| | | var requestRevertObj = MainPage.RequestHttps (API.YdForgetPassword, requestJson); |
| | | if (requestRevertObj.StateCode.ToUpper() == "SUCCESS") { |
| | | Application.RunOnMainThread (() => { |
| | | this.Close (); |
| | |
| | | try { |
| | | var requestObj = new ValidateSmsCodeObj () { Phone = mobileNumber, Code = vCode }; |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | var requestRevertObj = MainPage.RequestHttps ("ValidateSmsCode", requestJson, false); |
| | | var requestRevertObj = MainPage.RequestHttps ("ValidateSmsCode", requestJson); |
| | | if (requestRevertObj.StateCode.ToUpper() == "SUCCESS") { |
| | | Application.RunOnMainThread (() => { |
| | | InitMobilePasswrod (mobileNumber); |
| | |
| | | try { |
| | | var requestObj = new ForgetPasswordActionObj () { Account = mobileNumber, Password = newpw }; |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | var revertObj = MainPage.RequestHttps ("ForgetPasswordAction", requestJson, false); |
| | | var revertObj = MainPage.RequestHttps ("ForgetPasswordAction", requestJson); |
| | | if (revertObj.StateCode.ToUpper() == "SUCCESS") { |
| | | Application.RunOnMainThread (() => { |
| | | new Alert ("", Language.StringByID (R.MyInternationalizationString.ThePerationWasSuccessful), |