Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
         }
     }  
 }