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