public void SaveEnrollment() { try { var enrollmentsDictionary = _enrollments.ToDictionary(p => p.EnrollmentId); if (SelectedEnrollment != null) { _enrollmentCommand.Upsert(SelectedEnrollment); Enrollments.Clear(); //Torlojuk a ListBox-ot Enrollments.AddRange(_enrollmentCommand.GetList()); //Megjelenitjuk benne az uj listat UpdateAppStatus("Enrollment saved."); } } catch (Exception ex) { UpdateAppStatus(ex.Message); } }
public void SaveEnrollment() { try { var enrollmentDictionary = _enrollments.ToDictionary(x => x.EnrollmentId); if (SelectedEnrollment != null) { _enrollmentCommand.Upsert(SelectedEnrollment); Enrollments.Clear(); Enrollments.AddRange(_enrollmentCommand.GetList()); UpdateAppStatus("Enrollment Saved"); } } catch (Exception ex) { UpdateAppStatus(ex.Message); } }
protected virtual void ClearNavigationProperties() { Enrollments.Clear(); }