예제 #1
0
 // Reset the form back to the Start state
 private void ResetState()
 {
     Login_Logo.Top        = 285;
     Login_btnInloggen.Top = 631;
     Login_btnAnnuleren.Hide();
     Login_lblNummer.Hide();
     Login_textBoxNummer.Hide();
     Login_lblWachtwoord.Hide();
     Login_textBoxWachtwoord.Hide();
     Login_textBoxNummer.Clear();
     Login_lblIncorrect.Hide();
     Login_textBoxWachtwoord.Clear();
     state = LoginState.Start;
 }
예제 #2
0
 private void Login_btnInloggen_Click(object sender, EventArgs e)
 {
     if (state == LoginState.Start)
     {
         // Change the form to the EnterCredentials state
         Login_Logo.Top        = 118;
         Login_btnInloggen.Top = 792;
         Login_btnAnnuleren.Show();
         Login_lblNummer.Show();
         Login_textBoxNummer.Show();
         Login_lblWachtwoord.Show();
         Login_textBoxWachtwoord.Show();
         Login_textBoxNummer.Focus();
         state = LoginState.EnterCredentials;
     }
     else
     {
         CheckCredentials();
     }
 }