예제 #1
0
        private void RegisterPasswordInput_Enter(object sender, EventArgs e)
        {
            if (RegistrationPasswordInput.ForeColor == Color.Gray)
            {
                RegistrationPasswordInput.Clear();
            }

            RegistrationPasswordInput.PasswordChar = '*';
            RegistrationPasswordInput.ForeColor    = Color.White;
            RegistrationUnderline2.BackColor       = Color.FromArgb(78, 184, 206);
        }
예제 #2
0
 private void RegistrationConfirmPasswordInput_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (RegistrationUsernameInput.ForeColor != Color.Gray && RegistrationPasswordInput.ForeColor != Color.Gray && RegistrationConfirmPasswordInput.ForeColor != Color.Gray)
         {
             if (RegistrationConfirmPasswordInput.Text != "")
             {
                 CreateAccount();
             }
         }
         else if (RegistrationPasswordInput.ForeColor == Color.Gray)
         {
             RegistrationPasswordInput.Focus();
         }
         else if (RegistrationUsernameInput.ForeColor == Color.Gray)
         {
             RegistrationUsernameInput.Focus();
         }
     }
 }