当前位置: 首页>>代码示例>>C#>>正文


C# ReceivedResponses.Get方法代码示例

本文整理汇总了C#中ReceivedResponses.Get方法的典型用法代码示例。如果您正苦于以下问题:C# ReceivedResponses.Get方法的具体用法?C# ReceivedResponses.Get怎么用?C# ReceivedResponses.Get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ReceivedResponses的用法示例。


在下文中一共展示了ReceivedResponses.Get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BatchRequestsSucceeded

 private void BatchRequestsSucceeded(ReceivedResponses receivedResponses)
 {
     var helloWorldResponse = receivedResponses.Get<HelloWorldResponse>();
     var getServerDateResponse = receivedResponses.Get<GetServerDateResponse>();
     AddSucceededRequestsToView("Batch response", helloWorldResponse.Message,
         "The server date is: " + getServerDateResponse.Date);
 }
开发者ID:hoghweed,项目名称:Agatha,代码行数:7,代码来源:MainPage.xaml.cs

示例2: HandleGetProgramOfferingsByLocationCompleted

 private void HandleGetProgramOfferingsByLocationCompleted( ReceivedResponses receivedResponses )
 {
     IsLoading = false;
     var response = receivedResponses.Get<GetProgramOfferingsByLocationResponse> ();
     _programOfferingList = new ObservableCollection<ProgramOfferingDto> ( response.ProgramOfferingDtos );
     _pagedCollectionViewWrapper.WrapInPagedCollectionView ( _programOfferingList, _filter );
 }
开发者ID:divyang4481,项目名称:REM,代码行数:7,代码来源:ProgramOfferingListViewModel.cs

示例3: HandleDeleteProblemCompleted

 private void HandleDeleteProblemCompleted( ReceivedResponses receivedResponse )
 {
     var response = receivedResponse.Get<DeleteProblemResponse> ();
     _problemList = new List<ProblemDto> ( response.ProblemDtos );
     PagedCollectionViewWrapper.WrapInPagedCollectionView ( _problemList, _filter );
     IsLoading = false;
 }
开发者ID:divyang4481,项目名称:REM,代码行数:7,代码来源:CaseProblemListViewModel.cs

示例4: HandleResetTestDataCompleted

 private void HandleResetTestDataCompleted( ReceivedResponses receivedResponses )
 {
     var response = receivedResponses.Get<ResetTestDataResponse> ();
     GetAllClaimBatches ();
     IsLoading = false;
 }
开发者ID:divyang4481,项目名称:REM,代码行数:6,代码来源:ClaimBatchListViewModel.cs

示例5: HandleClaimBatchesCompleted

        private void HandleClaimBatchesCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<GetClaimBatchDisplayNamesByClaimBatchStatusResponse> ();

            var claimBatchList = new List<ClaimBatchDisplayNameDto> ( response.ClaimBatchDisplayNames );
            PagedCollectionViewWrapper.WrapInPagedCollectionView ( claimBatchList );
            IsLoading = false;
        }
开发者ID:divyang4481,项目名称:REM,代码行数:8,代码来源:ClaimBatchListViewModel.cs

示例6: MedicationFormStrengthRequestCompleted

 private void MedicationFormStrengthRequestCompleted( ReceivedResponses receivedResponses )
 {
     var response = receivedResponses.Get<MedicationFormStrengthResponse> ();
     DTSInfo = response.DTSInfo;
     _dtsMedicationCode = GetCodedConceptDto ( response.MainCode );
     RaisePropertyChanged ( () => DtsMedicationCode );
     if ( Medication != null && Medication.MedicationCodeCodedConcept != null )
     {
         var origDrugConcept =
             response.DTSInfo.Drugs.FirstOrDefault ( d => d.Code == Medication.MedicationCodeCodedConcept.CodedConceptCode );
         if ( origDrugConcept == null )
         {
             response.DTSInfo.SelectedStrength =
                 response.DTSInfo.Strengths.FirstOrDefault ( s => s.Code == Medication.MedicationCodeCodedConcept.CodedConceptCode );
             response.DTSInfo.SelectedForm =
                 response.DTSInfo.Forms.FirstOrDefault ( f => f.Code == Medication.MedicationCodeCodedConcept.CodedConceptCode );
         }
         else
         {
             response.DTSInfo.SelectedStrength =
                 response.DTSInfo.Strengths.FirstOrDefault (
                     s => origDrugConcept.Associations.SelectMany ( a => a.Value ).Contains ( s.Code ) );
             response.DTSInfo.SelectedForm =
                 response.DTSInfo.Forms.FirstOrDefault ( f => origDrugConcept.Associations.SelectMany ( a => a.Value ).Contains ( f.Code ) );
         }
         Medication.RootMedicationCodedConcept = GetCodedConceptDto ( response.MainCode );
     }
     else if ( Medication != null )
     {
         Medication.MedicationCodeCodedConcept = GetCodedConceptDto ( response.MainCode );
         Medication.RootMedicationCodedConcept = GetCodedConceptDto ( response.MainCode );
     }
     IsLoading = false;
 }
开发者ID:divyang4481,项目名称:REM,代码行数:34,代码来源:EditMedicationViewModel.cs

示例7: GetMedicationByKeyCompleted

 private void GetMedicationByKeyCompleted( ReceivedResponses receivedResponses )
 {
     if ( receivedResponses.HasResponse<GetMedicationByKeyResponse> () )
     {
         IsLoading = false;
         var response = receivedResponses.Get<GetMedicationByKeyResponse> ();
         Medication = response.Medication;
         DtsMedicationCode = Medication.MedicationCodeCodedConcept;
     }
 }
开发者ID:divyang4481,项目名称:REM,代码行数:10,代码来源:EditMedicationViewModel.cs

示例8: HandleTaskGroupCommandCompleted

        private void HandleTaskGroupCommandCompleted( ReceivedResponses receivedResponses )
        {
            IsLoading = false;
            var response = receivedResponses.Get<SystemRoleCommandResponse> ();
            var validationErrors = response.DataTransferObject.DataErrorInfoCollection.ToList ();

            if ( validationErrors.Count () == 0 )
            {
                var newlyChangedTaskGroup = response.SystemRole;

                RefreshForTaskGroupChanges ( newlyChangedTaskGroup );
            }
            else
            {
                ProcessValidationErrors ( validationErrors );
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:17,代码来源:EditTaskAndTaskGroupViewModel.cs

示例9: GetSystemPermissionListCompleted

        private void GetSystemPermissionListCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<DtoResponse<SystemPermissionsDto>> ();
            var systemPermissionList = response.DataTransferObject.SystemPermissions;
            PermissionCollectionView = new PagedCollectionView ( systemPermissionList );

            if ( _isTaskGroupWorkingModeInitialized )
            {
                UpdateSelectedItemInTreeView ( true );
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:11,代码来源:EditTaskAndTaskGroupViewModel.cs

示例10: HandleSaveSelfPaymentRequestCompleted

        private void HandleSaveSelfPaymentRequestCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<DtoResponse<SelfPaymentDto>> ();
            SelfPayment = response.DataTransferObject;

            IsLoading = false;

            if (!SelfPayment.HasErrors)
            {
                _popupService.ClosePopup ( "AddSelfPaymentView" );
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:12,代码来源:AddSelfPaymentViewModel.cs

示例11: HandleCloneRequestCompleted

        private void HandleCloneRequestCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<SystemRoleCommandResponse> ();
            var validationErrors = response.DataTransferObject.DataErrorInfoCollection.ToList ();

            if ( validationErrors.Count () == 0 )
            {
                var clonedSystemRole = response.SystemRole;
                _initialSystemRoleKeyToEdit = clonedSystemRole.Key;

                switch ( clonedSystemRole.SystemRoleType )
                {
                    case SystemRoleType.Task:
                        ExecuteRoleWorkingModeChangedCommand ( true );
                        break;
                    case SystemRoleType.TaskGroup:
                        ExecuteRoleWorkingModeChangedCommand ( false );
                        break;
                }
            }
            else
            {
                ProcessValidationErrors ( validationErrors );
            }
            IsLoading = false;
        }
开发者ID:divyang4481,项目名称:REM,代码行数:26,代码来源:EditTaskAndTaskGroupViewModel.cs

示例12: HandleGetLocationSummaryDtoCompleted

        private void HandleGetLocationSummaryDtoCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<DtoResponse<LocationSummaryDto>> ();

            LocationSummary = response.DataTransferObject;
            RaisePropertyChanged ( () => LocationPrimaryAddress );
            RaisePropertyChanged ( () => LocationPrimaryContact );
            RaisePropertyChanged ( () => LocationPrimaryPhone );
            RaisePropertyChanged ( () => HeaderContext );
            IsLoading = false;
        }
开发者ID:divyang4481,项目名称:REM,代码行数:11,代码来源:LocationWorkspaceViewModel.cs

示例13: HandleGetScheduledActivitiesByClinicalCaseCompleted

 private void HandleGetScheduledActivitiesByClinicalCaseCompleted( ReceivedResponses receivedResponses )
 {
     var response = receivedResponses.Get<GetScheduledVisitActivitiesByClinicalCaseResponse> ();
     var results = new ObservableCollection<VisitActivityDto> ( response.ScheduledActivityDtos );
     ScheduledActivities = results;
     IsLoading = false;
 }
开发者ID:divyang4481,项目名称:REM,代码行数:7,代码来源:VisitListViewModel.cs

示例14: PatientReminderSearchRequestComplete

        private void PatientReminderSearchRequestComplete( ReceivedResponses responses )
        {
            var response = responses.Get<PatientReminderSearchResponse> ();
            TotalCount = response.PatientReminderResultsDto.TotalCount;
            PatientReminderResults = new PagedCollectionView ( response.PatientReminderResultsDto.Results );
            PatientReminderResults.SortDescriptions.Clear ();

            if ( SortBy != null )
            {
                PatientReminderResults.SortDescriptions.Add ( new SortDescription ( SortBy, SortDirection ) );
            }

            IsLoading = false;
        }
开发者ID:divyang4481,项目名称:REM,代码行数:14,代码来源:PatientReminderViewModel.cs

示例15: HandleSaveJobFunctionCompleted

        private void HandleSaveJobFunctionCompleted( ReceivedResponses receivedResponse )
        {
            var response = receivedResponse.Get<SystemRoleCommandResponse> ();
            var validationErrors = response.DataTransferObject.DataErrorInfoCollection.ToList ();

            ProcessSystemRoleResponses ( response.SystemRole, validationErrors );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:7,代码来源:EditJobFunctionViewModel.cs


注:本文中的ReceivedResponses.Get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。