private void AddSubjectButton_Click(dynamic item) { SubjectsManagementWindow wnd = new SubjectsManagementWindow(); if (wnd.ShowDialog() == true) { SubjectsControl.UpdateDataSync(); SearchSubject(wnd.newSubject.Subject.FullName); } }
private void EditSubjectButton_Click(dynamic item) { if (item != null) { SubjectsManagementWindow wnd = new SubjectsManagementWindow(item); if (wnd.ShowDialog() == true) { SubjectsControl.UpdateDataSync(); SubjectsControl.SelectItem(item); } } }