Example #1
0
 private void ButtonTeacher_Click(object sender, EventArgs e)
 {
     comboBox1.Visible = true;
     now = ListNow.TEACHER;
     comboBox1.Items.Clear();
     comboBox1.Items.AddRange(new object[] { "ВСЕ", "Доцент", "Лектор", "Ассистент" });
     comboBox1.SelectedIndex = 0;
     PrintTeacher();
 }
Example #2
0
 private void ButtonStudent_Click(object sender, EventArgs e)
 {
     comboBox1.Visible = true;
     now = ListNow.STUDENT;
     comboBox1.Items.Clear();
     comboBox1.Items.Add("ВСЕ");
     uint[] groups = managerGroup.GetGroups();
     foreach (var g in groups)
     {
         comboBox1.Items.Add(g);
     }
     comboBox1.SelectedIndex = 0;
     PrintStudents("ВСЕ");
 }
Example #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            managerGroup.NewTeaher(new Teacher("Иван", "Иванов", 30, "Доцент", 20));
            managerGroup.NewTeaher(new Teacher("Петр", "Петров", 30, "Лектор", 15));
            managerGroup.NewTeaher(new Teacher("Василий", "Васильев", 30, "Ассистент", 5));

            var t = managerGroup.GetTeacherArr().ToArray();

            managerGroup.NewGroup(5, t[0]);
            managerGroup.NewGroup(2, t[1]);
            managerGroup.NewGroup(3, t[2]);

            managerGroup.NewStudent(new Student("Сергей", "Сергеев", 18, 5));
            managerGroup.NewStudent(new Student("Дмитрий", "Ульянов", 18, 2));
            managerGroup.NewStudent(new Student("Андей", "Андреев", 18, 3));

            now = ListNow.TEACHER;
            this.ButtonTeacher_Click(buttonTeacher, null);
        }