private void txtCode_Leave(object sender, EventArgs e) { if (txtCode.Text == "") { CLEARLABEL.Select(); txtCode.Text = "Code"; } }
private void txtUsername_Leave(object sender, EventArgs e) { if (txtUsername.Text == "") { CLEARLABEL.Select(); txtUsername.Text = "Username"; } }
private void txtPassword_Leave(object sender, EventArgs e) { if (txtPassword.Text == "") { CLEARLABEL.Select(); txtPassword.isPassword = false; txtPassword.Text = "Password"; } }
private void txtEmail_Leave(object sender, EventArgs e) { if (txtEmail.Text == "") { CLEARLABEL.Select(); txtEmail.Text = "Email"; } lblEmailError.Visible = false; }
private void txtUsername_Leave(object sender, EventArgs e) { if (txtUsername.Text == "") { CLEARLABEL.Select(); txtUsername.Text = "Username"; } lblUNError.Visible = false; }
private void txtPassword_Leave(object sender, EventArgs e) { if (txtPassword.Text == "") { CLEARLABEL.Select(); txtPassword.isPassword = false; txtPassword.Text = "Password"; } else { var hasNumber = new Regex(@"[0-9]+"); var hasUpperChar = new Regex(@"[A-Z]+"); var hasMiniMaxChars = new Regex(@".{8,15}"); var hasLowerChar = new Regex(@"[a-z]+"); var hasSymbols = new Regex(@"[!@#$%^&*()_+=\[{\]};:<>|./?,-]"); string PW = txtPassword.Text; if (!hasLowerChar.IsMatch(PW)) { lblPWError.Visible = true; lblPWError.Text = "Must have a lowercase character"; } else if (!hasUpperChar.IsMatch(PW)) { lblPWError.Visible = true; lblPWError.Text = "Must have an uppercase character"; } else if (!hasMiniMaxChars.IsMatch(PW)) { lblPWError.Visible = true; lblPWError.Text = "Must be between 8 and 15 characters"; } else if (!hasNumber.IsMatch(PW)) { lblPWError.Visible = true; lblPWError.Text = "Must contain a number"; } else if (!hasSymbols.IsMatch(PW)) { lblPWError.Visible = true; lblPWError.Text = "Must contain a symbol"; } else { lblPWError.Visible = false; } } }
private void picLogo_Click(object sender, EventArgs e) { CLEARLABEL.Select(); }
private void LogIn_MouseClick(object sender, MouseEventArgs e) { CLEARLABEL.Select(); }
public LogIn() { InitializeComponent(); CLEARLABEL.Select(); }
public VerificationCode(string un) { InitializeComponent(); CLEARLABEL.Select(); username = un; }
public VerificationCode() { InitializeComponent(); CLEARLABEL.Select(); }
public SignUp() { InitializeComponent(); CLEARLABEL.Select(); }