Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (UnameTb.Text == "Admin" && PassTb.Text == "Admin")
     {
         Home optlist = new Home();
         optlist.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("If You are the Admin, Enter the correct information");
     }
 }
Beispiel #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     Home h = new Home();
     h.Show();
     this.Hide();
 }