Exemplo n.º 1
0
 private void AddTeacherButton_Click(dynamic item)
 {
     TeachersManagementWindow wnd = new TeachersManagementWindow();
     if (wnd.ShowDialog() == true)
     {
         TeachersControl.UpdateDataSync();
         teacher s = wnd.newTeacher;
         SearchTeacherById(s.Id);
     }
 }
Exemplo n.º 2
0
 private void EditTeacherButton_Click(dynamic item)
 {
     if (item != null)
     {
         TeachersManagementWindow wnd = new TeachersManagementWindow(item);
         if (wnd.ShowDialog() == true)
         {
             TeachersControl.UpdateDataSync();
             TeachersControl.SelectItem(item);
         }
     }
 }