Example #1
0
 public Registrar(string operacion, Dictionary<string, string> carrera)
 {
     InitializeComponent();
     this.controller = new Controladores.Carrera();
     this.operacion = operacion;
     this.carrera = carrera != null ? new Modelos.Carrera(carrera["ID"], carrera["nombre"]) : null;
 }
Example #2
0
 public Principal()
 {
     InitializeComponent();
     this.carrera = new Controladores.Carrera();
     this.curso = new Controladores.Curso();
     this.cursoEstudiante = new Controladores.CursoEstudiantes();
     this.estudiante = new Controladores.Estudiante();
 }
Example #3
0
        public void actualizar(string idEstudiante)
        {
            Controladores.Carrera carreraController = new Controladores.Carrera();
            DataTable carreras = carreraController.getCarreras();

            Dictionary<string, string> carrerasEmi = new Dictionary<string, string>();
            foreach (DataRow carrera in carreras.Rows)
            {
                carrerasEmi.Add(carrera["ID"].ToString(), carrera["nombre"].ToString());
            }

            Form vista = new Vistas.Estudiantes.Registrar(carrerasEmi, "actualizar", this.getEstudiante(idEstudiante));
            this.resolver(vista);
        }
Example #4
0
 public Principal()
 {
     InitializeComponent();
     this.datos = new Dictionary<string, object>();
     this.controlador = new Controladores.Encargado();
     this.carrera = new Controladores.Carrera();
     this.curso = new Controladores.Curso();
     this.estudiante = new Controladores.Estudiante();
     this.oficial = new Controladores.EstudianteOficial();
     this.falta = new Controladores.Falta();
     this.cursoEstudiante = new Controladores.CursoEstudiantes();
     this.faltasEstudiante = new Controladores.FaltasEstudiantes();
     this.reportes = new Controladores.Reportes();
 }
Example #5
0
 public Principal(DataTable carreras)
 {
     InitializeComponent();
     this.controller = new Controladores.Carrera();
     this.carreras = carreras;
 }