示例#1
0
        async private void btnSubmit_Click(object sender, EventArgs e)
        {
            progress.Show();

            string sEmail = FindViewById <EditText>(Resource.Id.txtForgotViewEmail).Text;

            bool bSuccess = await RestAPI.ForgotPassword(sEmail);

            if (bSuccess)
            {
                Alert(Lang.MESSAGE_HEADLINE, Lang.RESET_PASSWORD_LINK, Lang.BUTTON_OK);
            }
            else
            {
                Alert(Lang.MESSAGE_HEADLINE, Lang.NO_EMAIL_FOUND, Lang.BUTTON_OK);
            }

            progress.Hide();
        }
        async partial void UIButton249827_TouchUpInside(UIButton sender)
        {
            var bounds = UIScreen.MainScreen.Bounds;

            loadPop = new LoadingOverlay(bounds);
            View.Add(loadPop);

            string sEmail = txtForgotEmail.Text;

            bool bSuccess = await RestAPI.ForgotPassword(sEmail);

            if (bSuccess)
            {
                _msg = new UIAlertView(Lang.MESSAGE_HEADLINE, Lang.RESET_PASSWORD_LINK, null, Lang.BUTTON_OK, null);
                _msg.Show();
            }
            else
            {
                _msg = new UIAlertView(Lang.MESSAGE_HEADLINE, Lang.NO_EMAIL_FOUND, null, Lang.BUTTON_OK, null);
                _msg.Show();
            }

            loadPop.Hide();
        }