Example #1
0
        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> ();
            }
        }
Example #2
0
 private void ExecuteProgramSelectionChanged(ProgramDisplayNameDto obj)
 {
     ChangeProgramSelection(obj);
 }