Ejemplo n.º 1
0
 public void Execute(object objeto)
 {
     if (objeto.Equals("Alumnos"))
     {
         AlumnoView ventana = new AlumnoView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("Carreras"))
     {
         CarreraView ventana = new CarreraView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("Salones"))
     {
         SalonView ventana = new SalonView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("Puestos"))
     {
         PuestoView ventana = new PuestoView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("Cursos"))
     {
         CursoView ventana = new CursoView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("GruposAcademicos"))
     {
         GrupoAcademicoView ventana = new GrupoAcademicoView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("Profesores"))
     {
         ProfesorView ventana = new ProfesorView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("ProfesoresCursos"))
     {
         ProfesorCursoView ventana = new ProfesorCursoView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("Clases"))
     {
         ClaseView ventana = new ClaseView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("ClasesAlumnos"))
     {
         ClaseAlumnoView ventana = new ClaseAlumnoView();
         ventana.ShowDialog();
     }
 }
 public void Execute(object objeto)
 {
     if (objeto.Equals("Alumnos"))
     {
         AlumnoView ventana = new AlumnoView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("Puestos"))
     {
         PuestoView ventana = new PuestoView();
         ventana.ShowDialog();
     }
     else if (objeto.Equals("Carreras"))
     {
         CarreraView ventana = new CarreraView();
         ventana.ShowDialog();
     }
 }
Ejemplo n.º 3
0
        private void btnCarrera_Click(object sender, EventArgs e)
        {
            CarreraView carreraView = new CarreraView();

            carreraView.Show();
        }