Пример #1
0
        private void about_group_Click(object sender, EventArgs e)
        {
            AboutGroupsForm abtgrp = new AboutGroupsForm();

            abtgrp.dataGridAboutGrp.Rows.Clear();
            int          i        = 0;
            List <Group> mnt_list = db.Groups.ToList();

            foreach (Group item in mnt_list)
            {
                abtgrp.dataGridAboutGrp.Rows.Add();
                abtgrp.dataGridAboutGrp.Rows[i].Cells[0].Value = item.id;
                abtgrp.dataGridAboutGrp.Rows[i].Cells[1].Value = item.group_name;
                abtgrp.dataGridAboutGrp.Rows[i].Cells[2].Value = item.Group_types.group_type_name;
                abtgrp.dataGridAboutGrp.Rows[i].Cells[3].Value = item.Teacher.teacher_name;
                abtgrp.dataGridAboutGrp.Rows[i].Cells[4].Value = item.Mentor.mentor_name;
                abtgrp.dataGridAboutGrp.Rows[i].Cells[5].Value = item.group_start_date;
                i++;
            }
            abtgrp.ShowDialog();
        }
Пример #2
0
        private void label13_Click(object sender, EventArgs e)
        {
            AboutGroupsForm abtgrp = new AboutGroupsForm();

            abtgrp.ShowDialog();
        }
Пример #3
0
        private void about_group_Click(object sender, EventArgs e)
        {
            AboutGroupsForm abtgrpfrm = new AboutGroupsForm();

            abtgrpfrm.ShowDialog();
        }