Esempio n. 1
0
 public Login(string username, string password)
 {
     if (InitialLoginVerification.ValidCredentials(username, password) == true)
     {
         File.WriteAllText(@"CurrentLogIn.txt", username + ':' + password + ':' + "Logged_in");
         launchMainpage();
     }
 }
Esempio n. 2
0
        private void login_button_Click(object sender, EventArgs e)
        {
            if (InitialLoginVerification.ValidCredentials(Username_entry.Text, Password_entry.Text) == true)
            {
                File.WriteAllText(@"CurrentLogIn.txt", Username_entry.Text + ':' + Password_entry.Text + ':' + "Logged_in");

                launchMainpage();
            }
        }
Esempio n. 3
0
 private void name_entry_TextChanged(object sender, EventArgs e)
 {
     if (InitialLoginVerification.Valid_Name(name_entry.Text) == true)
     {
         validName            = true;
         name_entry.BackColor = System.Drawing.SystemColors.Window;
     }
     else
     {
         name_entry.BackColor = System.Drawing.Color.Tomato;
     }
 }
Esempio n. 4
0
 private void Password_Re_entry_TextChanged(object sender, EventArgs e)
 {
     if (InitialLoginVerification.ValidatedPassword(Passord_Entry.Text, Password_Re_entry.Text) == true)
     {
         validPassword = true;
         Password_Re_entry.BackColor = System.Drawing.SystemColors.Window;
     }
     else
     {
         Password_Re_entry.BackColor = System.Drawing.Color.Tomato;
     }
 }
Esempio n. 5
0
 private void email_entry_TextChanged(object sender, EventArgs e)
 {
     if (InitialLoginVerification.valid_Email(email_entry.Text) == true)
     {
         validEmail            = true;
         email_entry.BackColor = System.Drawing.SystemColors.Window;
     }
     else
     {
         email_entry.BackColor = System.Drawing.Color.Tomato;
     }
 }
Esempio n. 6
0
 private void StudentIDEntry_TextChanged(object sender, EventArgs e)
 {
     if (InitialLoginVerification.valid_Number(StudentIDEntry.Text) == true)
     {
         validStudentID           = true;
         StudentIDEntry.BackColor = System.Drawing.SystemColors.Window;
     }
     else
     {
         StudentIDEntry.BackColor = System.Drawing.Color.Tomato;
     }
 }
Esempio n. 7
0
 private void room_entry_TextChanged(object sender, EventArgs e)
 {
     if (InitialLoginVerification.valid_Room(room_entry.Text) == true)
     {
         validRoom            = true;
         room_entry.BackColor = System.Drawing.SystemColors.Window;
     }
     else
     {
         room_entry.BackColor = System.Drawing.Color.Tomato;
     }
 }