예제 #1
0
 private void AddSubjectButton_Click(dynamic item)
 {
     SubjectsManagementWindow wnd = new SubjectsManagementWindow();
     if (wnd.ShowDialog() == true)
     {
         SubjectsControl.UpdateDataSync();
         SearchSubject(wnd.newSubject.Subject.FullName);
     }
 }
예제 #2
0
 private void EditSubjectButton_Click(dynamic item)
 {
     if (item != null)
     {
         SubjectsManagementWindow wnd = new SubjectsManagementWindow(item);
         if (wnd.ShowDialog() == true)
         {
             SubjectsControl.UpdateDataSync();
             SubjectsControl.SelectItem(item);
         }
     }
 }