private void AddStudentButton_Click(dynamic item) { StudentsManagementWindow wnd = new StudentsManagementWindow(); if (wnd.ShowDialog() == true) { StudentsControl.UpdateDataSync(); student s = wnd.curStudent; SearchStudentById(s.Id); } }
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); } } }