예제 #1
0
        bool CheckEnteredValues()
        {
            if (!ValidateDate.Username(username))
            {
                MessageBox.Show("Please enter your name");
            }
            else if (!ValidateDate.Email(email))
            {
                MessageBox.Show("Your email is incorrect");
            }
            else if (!ValidateDate.Password(password))
            {
                MessageBox.Show("Your password is too short");
            }
            else if (country == "")
            {
                MessageBox.Show("Please select a country");
            }
            else
            {
                return(true);
            }

            return(false);
        }
예제 #2
0
        bool CheckEnteredValues()
        {
            if (!ValidateDate.Email(email))
            {
                MessageBox.Show("Your email is incorrect");
            }
            else if (!ValidateDate.Password(password))
            {
                MessageBox.Show("Your password is too short");
            }
            else
            {
                return(true);
            }

            return(false);
        }