static void Main(string[] args) { Group form = new Group(); UI.PrintGroup(form); form.AddStudent(new Student(Initillizator.GetRandomGenderOfStudent())); UI.PrintGroup(form); form.DeleteStudent(new Student(Initillizator.GetRandomGenderOfStudent())); Group form2 = form.GetNewCourse(); //UI.PrintGroup(form2); }
public Student(Sex gender) { Gender = gender; Name = Initillizator.GetRandomNameOfStudent(Gender); INN = Initillizator.GetRandomInnOfStudent(); marks = new Subject[3]; for (int i = 0; i < 3; i++) { marks[i] = new Subject(Initillizator.GetRandomAvarangeMark()); } }
public Group() { CountStudents = Initillizator.GetRandomCountOfGroup(); Students = new Student[CountStudents]; Name = Initillizator.GetRandomNameOfGroup(); term = Course.First; for (int i = 0; i < Students.Length; i++) { Students[i] = new Student(Initillizator.GetRandomGenderOfStudent()); } }