Exemplo n.º 1
0
        private void comboBox_Group_SelectedIndexChanged(object sender, EventArgs e)
        {
            flowLayoutPanel_Absents.Controls.Clear();
            string selectedGroup = comboBox_Group.SelectedItem.ToString();
            var    group         = _data.Groups.Where(t => t.Name.Equals(selectedGroup)).First();

            selectedGroupId = group.Id;

            ElementMaker.MakeSubjectsList(selectedGroupId, selectedDate, listBox_Subjects, _data);
        }
Exemplo n.º 2
0
        private void lessonToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddScheduleForm addScheduleForm = new AddScheduleForm(_data);

            addScheduleForm.ShowDialog();

            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;
            }
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
 private void dateTimePicker_ScheduleDate_ValueChanged(object sender, EventArgs e)
 {
     flowLayoutPanel_Absents.Controls.Clear();
     selectedDate = dateTimePicker_ScheduleDate.Value;
     ElementMaker.MakeSubjectsList(selectedGroupId, selectedDate, listBox_Subjects, _data);
 }