Beispiel #1
0
        private void usunOceneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string markId = this.marksList.FocusedItem.SubItems[0].Text;

            if (ChoiceMessage.Create("Czy na pewno chcesz usunac ocene?", "Pytanie"))
            {
                this.removeMarkById(markId);
            }
        }
Beispiel #2
0
        private void RemoveStudent_Click(object sender, EventArgs e)
        {
            string studentId = this.studentsList.FocusedItem.SubItems[0].Text;

            if (ChoiceMessage.Create("Czy na pewno chcesz usunac wybranego studenta?", "Wybieraj"))
            {
                Student.Remove(studentId);
                this.getAllStudents();
            }
        }
Beispiel #3
0
        private void RemoveSubject_Click(object sender, EventArgs e)
        {
            string subjectId = this.subjectsList.FocusedItem.SubItems[0].Text;

            if (ChoiceMessage.Create("Czy na pewno chcesz usunac wybrany przedmiot?", "Wybieraj"))
            {
                Subject.Remove(subjectId);
                this.getAllSubjects();
            }
        }