private void FrmDocente_Load(object sender, EventArgs e) { docente = new Docente(); bol = new DocenteBOL(); ced = ""; ruta = "Docentes.xml"; bol.CrearArchivo(ruta, "Docentes"); CargarTabla(); }
private void FrmReporte_Load(object sender, EventArgs e) { docenteBOL = new DocenteBOL(); reporteBOL = new ReporteBOL(); historialBOL = new HistorialBOL(); docente = new Docente(); cedula = ""; listaHistorial = new List <Historial>(); listaReporte = new List <Reporte>(); listaReporte = reporteBOL.CargarTodo("Reportes.xml"); listaHistorial = historialBOL.CargarTodo(); cargarTablaDocente(); }
private void FrmDocenteCurso_Load(object sender, EventArgs e) { cursoBOL = new CursoBOL(); docenteCursoBOL = new DocenteCursoBOL(); horarioBOL = new HorarioBOL(); docenteBOL = new DocenteBOL(); cursoHorarioBOL = new CursoHorarioBOL(); docenteCurso = new DocenteCurso(); rutaDocCur = "DocentesCursos.xml"; rutaCurso = "Cursos.xml"; rutaHorario = "Horarios.xml"; rutaDocente = "Docentes.xml"; rutaCurHor = "CursosHorarios.xml"; cursos = cursoBOL.CargarTodo(rutaCurso); horarios = horarioBOL.CargarTodo(rutaHorario); cursosH = cursoHorarioBOL.CargarTodo(rutaCurHor); docenteCursoBOL.CrearArchivo(rutaDocCur, "DocentesCursos"); CargarTablas(); }