Example #1
0
 private void txtCode_Leave(object sender, EventArgs e)
 {
     if (txtCode.Text == "")
     {
         CLEARLABEL.Select();
         txtCode.Text = "Code";
     }
 }
Example #2
0
 private void txtUsername_Leave(object sender, EventArgs e)
 {
     if (txtUsername.Text == "")
     {
         CLEARLABEL.Select();
         txtUsername.Text = "Username";
     }
 }
Example #3
0
 private void txtPassword_Leave(object sender, EventArgs e)
 {
     if (txtPassword.Text == "")
     {
         CLEARLABEL.Select();
         txtPassword.isPassword = false;
         txtPassword.Text       = "Password";
     }
 }
Example #4
0
 private void txtEmail_Leave(object sender, EventArgs e)
 {
     if (txtEmail.Text == "")
     {
         CLEARLABEL.Select();
         txtEmail.Text = "Email";
     }
     lblEmailError.Visible = false;
 }
Example #5
0
 private void txtUsername_Leave(object sender, EventArgs e)
 {
     if (txtUsername.Text == "")
     {
         CLEARLABEL.Select();
         txtUsername.Text = "Username";
     }
     lblUNError.Visible = false;
 }
Example #6
0
        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;
                }
            }
        }
Example #7
0
 private void picLogo_Click(object sender, EventArgs e)
 {
     CLEARLABEL.Select();
 }
Example #8
0
 private void LogIn_MouseClick(object sender, MouseEventArgs e)
 {
     CLEARLABEL.Select();
 }
Example #9
0
 public LogIn()
 {
     InitializeComponent();
     CLEARLABEL.Select();
 }
Example #10
0
 public VerificationCode(string un)
 {
     InitializeComponent();
     CLEARLABEL.Select();
     username = un;
 }
Example #11
0
 public VerificationCode()
 {
     InitializeComponent();
     CLEARLABEL.Select();
 }
Example #12
0
 public SignUp()
 {
     InitializeComponent();
     CLEARLABEL.Select();
 }