Beispiel #1
0
        //=========================Оценки=========================

        private void button14_Click(object sender, EventArgs e)
        {
            if (selectedStudent == null)
            {
                return;
            }

            Action <Subject, int> callback = addMark;
            MarkEditor            editor   = new MarkEditor(callback, subjects);

            editor.Show();
        }
Beispiel #2
0
        private void button13_Click(object sender, EventArgs e)
        {
            if (selectedStudent == null)
            {
                return;
            }
            if (listView1.SelectedItems.Count == 0)
            {
                return;
            }

            Student student = (Student)selectedStudent;

            Mark selectedMark = (Mark)student.getChild(listView1.SelectedItems[0].SubItems[0].Text);

            Action <Subject, int> callback = editMark;
            MarkEditor            editor   = new MarkEditor(callback, subjects, selectedMark);

            editor.Show();
        }