Beispiel #1
0
        private void llenarGrillaMateria()

        {
            int n = 0;

            mgMateria.Rows.Clear();
            MateriaComponent materiaComponent = new MateriaComponent();

            foreach (var item in materiaComponent.Read())
            {
                n = mgMateria.Rows.Add();
                mgMateria.Rows[n].Cells[0].Value = item.Id;
                mgMateria.Rows[n].Cells[1].Value = item.materia;
                mgMateria.Rows[n].Cells[2].Value = item.especialidad.especialidad;
            }
        }
Beispiel #2
0
        void llenargrilla()
        {
            RecorridoForm.LimpiarTXT(this);
            mgEspecialidades.Rows.Clear();
            MateriaComponent personaComponent = new MateriaComponent();

            int n = 0;

            foreach (var item in personaComponent.Read())
            {
                n = mgEspecialidades.Rows.Add();
                mgEspecialidades.Rows[n].Cells[0].Value = item.Id;
                mgEspecialidades.Rows[n].Cells[1].Value = item.materia;
                mgEspecialidades.Rows[n].Cells[2].Value = item.especialidad.especialidad;

                n++;
            }
        }