Beispiel #1
0
        void Send_Mail(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(entryEmail.Text))
            {
                stkQuestionindicate.IsVisible = true;
                isChecked = true;
            }
            else
            {
                ValidateEmailBehavior val = new ValidateEmailBehavior();
                if (!val.IsValidEmail(entryEmail.Text))
                {
                    stkQuestionindicate.IsVisible = true;
                    entryEmail.Focus();
                    return;
                }
            }

            if (!string.IsNullOrEmpty(entryEmail.Text))
            {
                stkQuestionindicate.IsVisible = false;
                isChecked = true;
            }


            if (!isChecked)
            {
                return;
            }
            else if (!string.IsNullOrEmpty(entryEmail.Text))
            {
            }
        }
Beispiel #2
0
        void btnLoginClicked(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(entryPwd.Text))
            {
                lblPwd.IsVisible = true;
                entryPwd.Focus();
                isChecked = true;
            }
            if (string.IsNullOrEmpty(entryEmail.Text))
            {
                lblEmail.IsVisible = true;
                entryEmail.Focus();
                isChecked = true;
            }
            else
            {
                ValidateEmailBehavior val = new ValidateEmailBehavior();
                if (!val.IsValidEmail(entryEmail.Text))
                {
                    lblEmail.IsVisible = true;
                    entryEmail.Focus();
                    return;
                }
            }

            if (!string.IsNullOrEmpty(entryEmail.Text))
            {
                lblEmail.IsVisible = false;
                isChecked          = true;
            }

            if (!string.IsNullOrEmpty(entryPwd.Text))
            {
                lblPwd.IsVisible = false;
                isChecked        = true;
            }
            if (!isChecked)
            {
                return;
            }
            else if ((!string.IsNullOrEmpty(entryPwd.Text)) && (!string.IsNullOrEmpty(entryEmail.Text)))
            {
                FileImageSource img = (FileImageSource)checkBox.Source;
                if (img.File.Equals("Tickcheckbox.png"))
                {
                    Navigation.PushModalAsync(new sendConformationScreen(), false);
                }
                else
                {
                    DisplayAlert("Message", "You must accept Terms of Service", "OK");
                    return;
                }
            }
        }