private void frmExamenMaestra_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            RecorridoForm.CambiarIdioma(this);

            llenarGrillaCursos();
            MateriaComponent materiaComponent = new MateriaComponent();

            txtMateriaAlta.DataSource    = materiaComponent.ReadByEspecialidad(persona.Id);
            txtMateriaAlta.ValueMember   = "Id";
            txtMateriaAlta.DisplayMember = "materia";
        }
Example #2
0
        private void txtMaestra_SelectedIndexChanged_1(object sender, EventArgs e)
        {
            if (txtMaestra.Items.Count != 0)
            {
                MateriaComponent materiaComponent = new MateriaComponent();
                string           id      = txtMaestra.Text;
                Maestro          persona = new Maestro();
                persona = (Maestro)txtMaestra.SelectedItem;



                txtMateriaAlta.DataSource    = materiaComponent.ReadByEspecialidad(persona.Id);
                txtMateriaAlta.ValueMember   = "Id";
                txtMateriaAlta.DisplayMember = "materia";
            }
        }