private void ChangeProgramSelection(ProgramDisplayNameDto dto) { if (dto != null) { var request = new GetAvailableProgramOfferingLocationsRequest { CurrentStaffKey = CurrentUserContext.Staff.Key, ProgramKey = dto.Key }; var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher(); requestDispatcher.Add(request); requestDispatcher.ProcessRequests( HandleGetAvailableProgramOfferingLocationsCompleted, HandleGetAvailableProgramOfferingLocationsException); } else { ProgramEnrollment.Location = null; AvailableProgramOfferingLocations = new List <ProgramOfferingLocationDto> (); } }
private void ExecuteProgramSelectionChanged(ProgramDisplayNameDto obj) { ChangeProgramSelection(obj); }