Beispiel #1
0
 private void btnAddSubject_Click(object sender, EventArgs e)
 {
     using (var addSubjectDialog = new AddSubject(connection))
     {
         addSubjectDialog.ShowDialog();
     }
 }
Beispiel #2
0
 private void buttonAddSubject_Click(object sender, EventArgs e)
 {
     using (var addDialog = new AddSubject(connection))
     {
         if (addDialog.ShowDialog() == DialogResult.OK)
         {
             UpdateSubjectsList();
         }
     }
 }