Beispiel #1
0
 private void loginBtn_Click(object sender, EventArgs e)
 {
     //Placeholder until database is implemented
     if (textBox1.Text == Program.user.username && textBox2.Text == Program.user.password)
     {
         mainMenu ss = new mainMenu();
         Hide();
         ss.Show();
     }
     else
     {
         MessageBox.Show("Error: Invalid Username and/or Password");
     }
 }
Beispiel #2
0
 private void loginBtn_Click(object sender, EventArgs e)
 {
     //Placeholder until database is implemented
     if (textBox1.Text == Program.user.username && textBox2.Text == Program.user.password)
     {
         mainMenu ss = new mainMenu();
         Hide();
         ss.Show();
     }
     else
     {
         MessageBox.Show("Error: Invalid Username and/or Password");
     }
 }