public FormReporteTransaccion() { InitializeComponent(); var _transaccionBL = new TransaccionBL(); var bindingSource = new BindingSource(); bindingSource.DataSource = _transaccionBL.ObtenerTransacciones(); var reporte = new ReporteTransaccion(); reporte.SetDataSource(bindingSource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }
public FormNotas() { InitializeComponent(); _transaccionBL = new TransaccionBL(); listaTransaccionesBindingSource.DataSource = _transaccionBL.ObtenerTransacciones(); _alumnoBL = new AlumnosBL(); listaAlumnosBindingSource.DataSource = _alumnoBL.ObtenerAlumnos(); _materiaBL = new MateriasBL(); listaMateriasBindingSource.DataSource = _materiaBL.ObtenerMaterias(); _seccionBL = new SeccionesBL(); listaSeccionesBindingSource.DataSource = _seccionBL.ObtenerSecciones(); }