Exemplo n.º 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");
     }
 }
Exemplo n.º 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");
     }
 }