예제 #1
0
 private void AddStudentButton_Click(dynamic item)
 {
     StudentsManagementWindow wnd = new StudentsManagementWindow();
     if (wnd.ShowDialog() == true)
     {
         StudentsControl.UpdateDataSync();
         student s = wnd.curStudent;
         SearchStudentById(s.Id);
     }
 }
예제 #2
0
 private void EditStudentButton_Click(dynamic item)
 {
     if (item != null)
     {
         student s = item.Student;
         StudentsManagementWindow wnd = new StudentsManagementWindow(s);
         if (wnd.ShowDialog() == true)
         {
             StudentsControl.UpdateDataSync();
             SearchStudentById(s.Id);
         }
     }  
 }