Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
        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());
                }
            }
        }