public void CreateFacultative(string name)
        {
            Facultative newFac = new Facultative(name, this);

            facultatives.Add(newFac);
            Announce?.Invoke(newFac);
        }
        // temporary!
        public void FinishFacultative(string name, List <int> grades, Archive archive)
        {
            Facultative current = facultatives.Find(f => f.Name == name);

            MarkStudents(grades, current);

            current.SaveToArchive(archive);

            facultatives.Remove(current);
        }
 private void MarkStudents(List <int> grades, Facultative facultative)
 {
     if (grades.Count == facultative.Students.Count)
     {
         for (int i = 0; i < facultative.Students.Count; i++)
         {
             facultative.Mark(facultative.Students[i], grades[i]);
         }
     }
 }
 public void AddFacultative(Facultative f)
 {
     facultatives.Add(f);
 }
Beispiel #5
0
 public void Subcribe(Facultative facultative)
 {
     facultative.AddStudent(this);
 }