| | |
| | | if (bodyPageView.ChildrenCount - 2 == e) { |
| | | bodyPageView.RemoveAt (bodyPageView.ChildrenCount - 1); |
| | | } |
| | | Console.WriteLine ("D" + e.ToString ()); |
| | | Utlis.WriteLine ("D" + e.ToString ()); |
| | | }; |
| | | |
| | | FrameLayout bodyView = new FrameLayout (); |
| | |
| | | X = Application.GetRealWidth (70), |
| | | 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, |
| | |
| | | } 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), |