Beispiel #1
0
 public Docente(string nombre, int antiguedad, int cantidadAulas, EMateria materia) : base(nombre, antiguedad)
 {
     puntuacion         = 0;
     this.materia       = materia;
     this.cantidadAulas = cantidadAulas;
     evaluarAlumnos    += Evaluar;
     evaluarAlumnos    += ArchivarEvaluaciones;
 }
Beispiel #2
0
        public static List <Estudiante> TraerEstudiantes()
        {
            string query = "Select * from estudiantes";

            try
            {
                List <Estudiante> auxLista = new List <Estudiante>();

                comando.CommandText = query;

                if (conexion.State != ConnectionState.Open)
                {
                    conexion.Open();
                }

                reader = comando.ExecuteReader();

                while (reader.Read())
                {
                    string   a = reader.GetString(0);
                    EMateria b = (EMateria)(reader.GetInt16(1));
                    auxLista.Add(new Estudiante(a, b));
                }

                return(auxLista);
            }
            catch (Exception)
            {
                throw;
            }

            finally
            {
                conexion.Close();
            }
        }
Beispiel #3
0
 private Materia(EMateria nombre) : this()
 {
     this.Nombre = nombre;
 }
Beispiel #4
0
 public Estudiante(string nombre, EMateria materia)
 {
     this.nombre  = nombre;
     this.materia = materia;
 }
Beispiel #5
0
 private Materia()
 {
     this._alumnos          = new List <Alumno>();
     this._nombre           = EMateria.Laboratorio_I;
     this._notaParaUnAlumno = new Random();
 }
Beispiel #6
0
 public Profesor(int legajo, string nombr, EMateria mat)
     : this(legajo, nombr)
 {
     this.materia = mat;
 }