private void LoadCursos(int idMateria)
        {
            try
            {
                this.cmbComision.Items.Clear();
                this.cmbAnio.Items.Clear();
                if (LogicCurso.GetAllForMateria(idMateria).Rows.Count > 0)
                {
                    this.cmbComision.DataSource    = LogicCurso.GetAllForMateria(idMateria);
                    this.cmbComision.DisplayMember = "desc_comision";
                    this.cmbComision.ValueMember   = "id_comision";
                    this.cmbComision.SelectedIndex = -1;

                    this.cmbComision.Enabled = true;
                }
                else
                {
                    this.cmbComision.Items.Insert(0, "No existen Comisiones");
                    this.cmbComision.SelectedIndex = 0;
                    this.cmbAnio.Items.Insert(0, "----");
                    this.cmbAnio.SelectedIndex = 0;
                    this.cmbComision.Enabled   = false;
                    this.cmbAnio.Enabled       = false;
                }
            }
            catch (Exception ex)
            {
                this.Notificar("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 private void LoadAnios(int idMateria, int idComision)
 {
     try
     {
         if (LogicCurso.GetAll(idMateria, idComision).Rows.Count > 0)
         {
             this.cmbAnio.Enabled       = true;
             this.cmbAnio.DataSource    = LogicCurso.GetAll(idMateria, idComision);
             this.cmbAnio.DisplayMember = "anio_calendario";
             this.cmbAnio.ValueMember   = "id_curso";
             this.cmbAnio.SelectedIndex = -1;
         }
     }
     catch (Exception ex)
     {
         this.Notificar("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }