示例#1
0
 public Student(Person person, Person.Education education,int groupNumber)
 {
     _person = person;
     _education = education;
     _groupNumber = groupNumber;
     _exams = new List<Person.Exam>();
 }
示例#2
0
        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));
        }
示例#3
0
 public Student()
 {
     _person = new Person();
     _education = Person.Education.Вachelor;
     _groupNumber = 0;
     _exams = new List<Person.Exam>();
 }
示例#4
0
 public bool this[Person.Education Check]
 {
     get
     {
         return(Check == FormInfo);
     }
 }
示例#5
0
 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();
 }
示例#6
0
 public Student()
     : base()
 {
     _education = Person.Education.Вachelor;
     _groupNumber = 0;
     _exams = new ArrayList();
     _tests = new ArrayList();
 }
示例#7
0
 Student(Person student, Person.Education form, int group)
 {
     StudentInfo = student;
     FormInfo    = form;
     GroupNumber = group;
 }