Exemple #1
0
        private void ChangeProgramOfferingLocationSelection(ProgramOfferingLocationDto dto)
        {
            if (dto != null)
            {
                var request = new GetAvailableEnrollingStaffsRequest {
                    ProgramOfferingKey = dto.Key
                };

                var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher();
                requestDispatcher.Add(request);
                requestDispatcher.ProcessRequests(
                    HandleGetAvailableEnrollingStaffsCompleted, HandleGetAvailableEnrollingStaffsException);
            }
            else
            {
                ProgramEnrollment.EnrollingStaff = null;
                AvailableEnrollingStaffs         = new List <StaffNameDto> ();
            }
        }
        private void InitializeAvailableSelectionList(ProgramEnrollmentDto dto)
        {
            if (dto != null)
            {
                var request = new GetAvailableEnrollingStaffsRequest {
                    ProgramOfferingKey = dto.ProgramOfferingKey
                };

                var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher();
                requestDispatcher.Add(request);

                IsLoading = true;
                requestDispatcher.ProcessRequests(
                    HandleInitializeAvailableSelectionListCompleted, HandleInitializeAvailableSelectionListException);
            }
            else
            {
                AvailableEnrollingStaffs = new List <StaffNameDto> ();
            }
        }