public void AddDefaults() { if (Students == null) { Students = new List <Student>(); } for (int i = 0; i < 5; i++) { Students.Add(TestCollections.CreateStudent(i)); } }
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)); } }