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); } }
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(); } }
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(); } }