private void button1_Click(object sender, EventArgs e)
        {
            AdminPageAfterLogin obj = new AdminPageAfterLogin();

            obj.Show();
            this.Hide();
        }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (textBox2.Text == "UET-ADMIN" && textBox1.Text == "UET-Administrator-@0321")
     {
         MessageBox.Show("Admin has been Login");
         AdminPageAfterLogin obj = new AdminPageAfterLogin();
         obj.Show();
         this.Hide();
     }
     else if (textBox2.Text == "" || textBox1.Text == "")
     {
         MessageBox.Show("Incompete Information is provided!");
     }
     else
     {
         MessageBox.Show("Incorrect");
         textBox1.Text = null;
         textBox2.Text = null;
     }
 }