示例#1
0
        private async void OnbtnResetPassword(object sender, EventArgs e)
        {
            var Pass = string.Empty;

            Pass = txtResetPassword.Text;

            if (Pass == null)
            {
                await DisplayAlert("Validation Error", "Enter new password", "Re-try");

                return;
            }

            dsLogin = new F4HApp.dataservice.DSLogin();
            string result = await dsLogin.ResetMemberPassword(txtMobileNo.Text, Pass);

            RegistrationResponseObject m = JsonConvert.DeserializeObject <RegistrationResponseObject>(result.Replace("[", "").Replace("]", ""));
            string Status = m.Status.ToString();
            string Msg    = m.Msg;

            txtResetPassword.Text = "";

            await DisplayAlert("Food4Health", Msg, "Done");
        }