Beispiel #1
0
 private void btn_Login_Click(object sender, EventArgs e) //check to see if the right input was entered, if so, log in.
 {
     if (String.IsNullOrWhiteSpace(txt_User.Text) || String.IsNullOrWhiteSpace(txt_Password.Text))
     {
         MessageBox.Show("Username and Password Required!");
     }
     else if (Data.Database.CheckUser(txt_User.Text, txt_Password.Text))
     {
         Form_Menu Menu = new Form_Menu();
         Menu.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Incorrect Username or Password");
     }
 }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     menu.Show();
     this.Close();
 }