private void groupToolStripMenuItem_Click(object sender, EventArgs e) { AddGroupForm addGroupForm = new AddGroupForm(_data); addGroupForm.ShowDialog(); ElementMaker.MakeGroupsTreeView(_data, treeView_Groups, comboBox_Faculty); }
public MainForm() { studentAbsents = new Dictionary <Student, Absent>(); chechBoxs = new Dictionary <string, ComboBox>(); selectedDate = DateTime.Now; selectedGroupId = -1; _data = new DataContext(); InitializeComponent(); ElementMaker.MakeGroupsTreeView(_data, treeView_Groups, comboBox_Faculty); }
private void studentToolStripMenuItem_Click(object sender, EventArgs e) { AddStudentForm addStudentForm = new AddStudentForm(_data); addStudentForm.ShowDialog(); ElementMaker.MakeGroupsTreeView(_data, treeView_Groups, comboBox_Faculty); flowLayoutPanel_Absents.Controls.Clear(); flowLayoutPanel_Absents.Controls.Clear(); studentAbsents.Clear(); chechBoxs.Clear(); ElementMaker.MakeSubjectsList(selectedGroupId, selectedDate, listBox_Subjects, _data); if (listBox_Subjects.Items.Count > 0) { listBox_Subjects.SelectedIndex = 0; } dataGridView_StudentsAbsent.Rows.Clear(); }