internal Disciplina(PlainText nume, Coeficient pondereExamen) { //Contract.Requires(nume != null, "nume"); //Contract.Requires(pondereExamen != null, "pondereExamen"); Nume = nume; PondereExamen = pondereExamen; _studentiInscrisi = new List <Student>(); Stare = StareDisciplina.Inscrieri; Laboratoare = new Laboratoare(); Cursuri = new Cursuri(); }
public void IncarcaMaterialLaborator(PlainText numeLaborator, Uri continutLaborator) { //Contract.Requires(numeLaborator != null, "numeLaborator"); //Contract.Requires(continutLaborator != null, "continutLaborator"); var laborator = Laboratoare.Valori.FirstOrDefault(c => c.Nume.Equals(numeLaborator)); if (laborator == null) { //Laboratorul trebuie creat laborator = new Laborator(numeLaborator); laborator.LinkContinut = continutLaborator; Laboratoare.AdaugaLaborator(laborator); } else { //Laboratorul exista laborator.ActualizareLinkContinut(continutLaborator); } }