Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Login     l = new Login();
            AdminHome h = new AdminHome();

            h.Show();
            EmployeeHome o = new EmployeeHome();

            o.Show();
            l.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "admin" && textBox2.Text == "123")
     {
         AdminHome h = new AdminHome();
         h.Show();
         this.Hide();
     }
     if (textBox1.Text == "employee" && textBox2.Text == "123")
     {
         EmployeeHome o = new EmployeeHome();
         o.Show();
         this.Hide();
     }
 }