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); }
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); }