private static void ShowInfoOfStudentInGroup(Univercity U, string id) { IStudent student = U.GetGroup(id.Substring(0, 5)).GetStudent(id); foreach (var s in student.Subjects) { ShowResultOfStudent(student, s); } }
private static void ShowResultOfSubject(Univercity U, string session, string numberGroup, string nameSubject) { if (session == null) { throw new ArgumentNullException(nameof(session)); } if (numberGroup == null) { throw new ArgumentNullException(nameof(numberGroup)); } if (nameSubject == null) { throw new ArgumentNullException(nameof(nameSubject)); } U.GetSession(session); ShowResultToGroup(U.GetGroup(numberGroup), U.GetSubject(nameSubject)); }
private static void ShowStudentsInGroup(Univercity U, string numberGroup) { if (numberGroup == null) { throw new ArgumentNullException(); } IGroup group = U.GetGroup(numberGroup); Console.WriteLine("группа: " + group.NumberGroup); if (group.Students != null) { foreach (var t in group.Students) { Console.WriteLine(t.ToString()); } } }