public Student(Person person, Person.Education education,int groupNumber) { _person = person; _education = education; _groupNumber = groupNumber; _exams = new List<Person.Exam>(); }
public static Student GenerateInfo(int n) { Student T = new Student(); var test = new List <Test>(); var exam = new List <Exam>(); Person.Education Ed = Person.Education.Bachelor; switch (n % 3) { case 0: Ed = Person.Education.Bachelor; break; case 1: Ed = Person.Education.Master; break; case 2: Ed = Person.Education.SecondEducation; break; } for (int i = 0; i < 4; i++) { test.Add(new Test("Test" + i, true)); exam.Add(new Exam("Exam" + i, i * i % 5, new DateTime(2015 + i % 40, 1 + i % 12, 1 + i % 27))); } return(new Student("Student" + n, "Surname" + n, new DateTime(2000 + n % 20, 1 + n % 12, 1 + n % 28), Ed, 301, test, exam)); }
public Student() { _person = new Person(); _education = Person.Education.Вachelor; _groupNumber = 0; _exams = new List<Person.Exam>(); }
public bool this[Person.Education Check] { get { return(Check == FormInfo); } }
public Student(Person person, Person.Education education, int groupNumber) : base(person.FirstName, person.LastName, person.DOB) { _education = education; _groupNumber = groupNumber; _exams = new ArrayList(); _tests = new ArrayList(); }
public Student() : base() { _education = Person.Education.Вachelor; _groupNumber = 0; _exams = new ArrayList(); _tests = new ArrayList(); }
Student(Person student, Person.Education form, int group) { StudentInfo = student; FormInfo = form; GroupNumber = group; }