Example #1
0
 private void Listar()
 {
     PlanLogic pl = new PlanLogic();
     cmbPlanes.ValueMember = "id_plan";
     cmbPlanes.DisplayMember = "desc_plan";
     cmbPlanes.DataSource = pl.GetAll();
     ComisionLogic cl = new ComisionLogic();
     cmbComision.ValueMember = "id_comision";
     cmbComision.DisplayMember = "desc_comision";
     cmbComision.DataSource = cl.DameComisiones((int)cmbPlanes.SelectedValue);
     CursoLogic curl=new CursoLogic();
     dgvCursos.DataSource = curl.DameCursos((int)cmbComision.SelectedValue);
 }
Example #2
0
 private void cmbComision_SelectionChangeCommitted(object sender, EventArgs e)
 {
     CursoLogic curl = new CursoLogic();
     dgvCursos.DataSource = curl.DameCursos((int)cmbComision.SelectedValue);
 }
 private void Listar()
 {
     CursoLogic cl= new CursoLogic();
     dgvCursos.AutoGenerateColumns = false;
     dgvCursos.DataSource = cl.DameCursos();
 }