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; }
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(); } }
private Materia(EMateria nombre) : this() { this.Nombre = nombre; }
public Estudiante(string nombre, EMateria materia) { this.nombre = nombre; this.materia = materia; }
private Materia() { this._alumnos = new List <Alumno>(); this._nombre = EMateria.Laboratorio_I; this._notaParaUnAlumno = new Random(); }
public Profesor(int legajo, string nombr, EMateria mat) : this(legajo, nombr) { this.materia = mat; }