Example #1
0
        private void HandleGetAvailableEnrollingStaffsCompleted(ReceivedResponses receivedResponses)
        {
            var response = receivedResponses.Get <GetAvailableEnrollingStaffsResponse> ();

            ProgramEnrollment.EnrollingStaff = null;
            AvailableEnrollingStaffs         = response.StaffNames;
            SelectedEnrollingStaff           = AvailableEnrollingStaffs.SingleOrDefault(x => x.Key == CurrentUserContext.Staff.Key);
        }
        private void HandleInitializeAvailableSelectionListCompleted(ReceivedResponses receivedResponses)
        {
            var response = receivedResponses.Get <GetAvailableEnrollingStaffsResponse> ();

            AvailableEnrollingStaffs = response.StaffNames;
            SelectedEnrollingStaff   = AvailableEnrollingStaffs.SingleOrDefault(x => x.Key == ProgramEnrollment.EnrollingStaff.Key);

            _isInitializing = false;
            IsLoading       = false;
        }