コード例 #1
0
        public void AddDefaults()
        {
            if (Students == null)
            {
                Students = new List <Student>();
            }

            for (int i = 0; i < 5; i++)
            {
                Students.Add(TestCollections.CreateStudent(i));
            }
        }
コード例 #2
0
        public void AddDefaults()
        {
            Student st;

            if (Students == null)
            {
                Students = new List <Student>();
            }

            for (int i = 0; i < 5; i++)
            {
                st = TestCollections.CreateStudent(i);
                Students.Add(st);
                StudentCountChanged?.Invoke(this, new StudentListHandlerEventArgs(Name, "Add new student.", st));
            }
        }