示例#1
0
        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);
        }
示例#2
0
 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());
     }
 }
示例#3
0
 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());
     }
 }