Beispiel #1
0
        private void addStudentButton_Click(object sender, EventArgs e)
        {
            EditStudentForm edf = new EditStudentForm();

            edf.ShowDialog();
            edf.Dispose();
        }
Beispiel #2
0
 private void editStudentButton_Click(object sender, EventArgs e)
 {
     if (studentsListBox.SelectedIndex != -1)
     {
         EditStudentForm edf = new EditStudentForm(studentsListBox.SelectedItem.ToString());
         edf.ShowDialog();
         edf.Dispose();
     }
 }