Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Vigilante vig = new Vigilante();

            vig.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
 private void btnIngresar_Click(object sender, EventArgs e)
 {
     if (cmbTipoUsuario.Text.Equals("Vigilante"))
     {
         Vigilante vigilante = new Vigilante();
         vigilante.Show();
         this.Hide();
     }
     else if (cmbTipoUsuario.Text.Equals("Empleado"))
     {
         InicioSesion ventana = new InicioSesion();
         ventana.Show();
         this.Hide();
     }
     else
     {
         Admin ventana2 = new Admin();
         ventana2.Show();
         this.Hide();
     }
 }