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; }
public Principal() { InitializeComponent(); this.carrera = new Controladores.Carrera(); this.curso = new Controladores.Curso(); this.cursoEstudiante = new Controladores.CursoEstudiantes(); this.estudiante = new Controladores.Estudiante(); }
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); }
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(); }
public Principal(DataTable carreras) { InitializeComponent(); this.controller = new Controladores.Carrera(); this.carreras = carreras; }