示例#1
0
        public void RegisterStudent(Student student)
        {
            if (student == null)
            {
                throw new ArgumentNullException();
            }

            Students.Add(student);
        }
示例#2
0
        private void Update(IUniversityService universityService)
        {
            Students.Clear();
            Groups.Clear();
            var tempStud  = universityService.GetStudents();
            var tempGroup = universityService.GetGroup();

            foreach (var item in tempStud)
            {
                Students.Add(item);
            }
            foreach (var item in tempGroup)
            {
                Groups.Add(item);
            }
        }