• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# ICommandFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ICommandFactory的典型用法代码示例。如果您正苦于以下问题:C# ICommandFactory类的具体用法?C# ICommandFactory怎么用?C# ICommandFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ICommandFactory类属于命名空间,在下文中一共展示了ICommandFactory类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: JobFunctionListViewModel

        public JobFunctionListViewModel(
            IUserDialogService userDialogService,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IAccessControlManager accessControlManager,
            IPopupService popupService,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _popupService = popupService;
            _userDialogService = userDialogService;

            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;

            _pagedCollectionViewWrapper = new PagedCollectionViewWrapper<SystemRoleDto> ();

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            CreateJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand ( () => CreateJobFunctionCommand, ExecuteCreateJobFunctionCommand );
            EditJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand<SystemRoleDto> (
                () => EditJobFunctionCommand, ExecuteEditJobFunctionCommand );
            CloneJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand<SystemRoleDto> (
                () => CloneJobFunctionCommand, ExecuteCloneJobFunctionCommand );
            DeleteJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand<SystemRoleDto> (
                () => DeleteJobFunctionCommand, ExecuteDeleteJobFunction );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:25,代码来源:JobFunctionListViewModel.cs


示例2: MessageCenterWorkspaceViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageCenterWorkspaceViewModel"/> class.
        /// </summary>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="commandFactory">The command factory.</param>
        /// <param name="popupService">The popup service.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="dispatcherFactory">The dispatcher factory.</param>
        public MessageCenterWorkspaceViewModel(
            IAccessControlManager accessControlManager,
            ICommandFactory commandFactory,
            IPopupService popupService,
            IEventAggregator eventAggregator,
            IAsyncRequestDispatcherFactory dispatcherFactory
            )
            : base(accessControlManager, commandFactory)
        {
            _popupService = popupService;
            _dispatcherFactory = dispatcherFactory;
            IncomingMail = new ObservableCollection<DirectMailDto>();
            SentMail = new ObservableCollection<DirectMailDto>();

            CommandFactoryHelper<MessageCenterWorkspaceViewModel> commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );
            SendNewMailCommand = commandFactoryHelper.BuildDelegateCommand ( () => SendNewMailCommand, ExecuteSendNewMail );
            OpenSaveToExternalPatientHistoryCommand =
                commandFactoryHelper.BuildDelegateCommand<string> (
                    () => OpenSaveToExternalPatientHistoryCommand, ExecuteOpenSaveToExternalPatientHistory );
            DownloadMailAttachmentCommand = commandFactoryHelper.BuildDelegateCommand<string>(
                () => DownloadMailAttachmentCommand, DownloadMailAttachment);
            DragQueryCommand = commandFactoryHelper.BuildDelegateCommand<DragDropQueryEventArgs>(() => DragQueryCommand, ExecuteDragQuery);

            eventAggregator.GetEvent<MessageSentEvent> ().Subscribe ( HandleMessageSent );

            SetupImapFolderTimers ();
            RequestInboxContent ( null, null );
            RequestSentItemsContent ( null, null );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:37,代码来源:MessageCenterWorkspaceViewModel.cs


示例3: ClaimErrorsListViewModel

 /// <summary>
 /// Initializes a new instance of the <see cref="ClaimErrorsListViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public ClaimErrorsListViewModel( IAccessControlManager accessControlManager, ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     Errors = new ObservableCollection<TempClaimModel> ();
     var error1 = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -10 ),
             PayorName = "Aetna",
             ChargeAmount = ( decimal )50.0,
             PatientName = "Albert Smith",
             Message = "BR897 - The patient name does not match the insurance information on file.",
             PayorTypeName = "Commercial"
         };
     var error2 = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -15 ),
             PayorName = "Medicaid",
             ChargeAmount = ( decimal )500.0,
             PatientName = "Tad Young",
             Message = "BR123 - The assessment cannot be incomplete.",
             PayorTypeName = "Medicare"
         };
     Errors.Add ( error1 );
     Errors.Add ( error2 );
 }
开发者ID:divyang4481,项目名称:REM,代码行数:30,代码来源:ClaimErrorsListViewModel.cs


示例4: SaveProjectCommand

 public SaveProjectCommand(IProjectController projectController, IProjectUserOptionsController projectUserOptionsController, 
     ICommandFactory commandFactory)
 {
     this.projectController = projectController;
     this.projectUserOptionsController = projectUserOptionsController;
     this.commandFactory = commandFactory;
 }
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:7,代码来源:SaveProjectCommand.cs


示例5: MainPatientSearchViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="MainPatientSearchViewModel"/> class.
        /// </summary>
        /// <param name="userDialogService">The user dialog service.</param>
        /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="navigationService">The navigation service.</param>
        /// <param name="commandFactory">The command factory.</param>
        public MainPatientSearchViewModel(
            IUserDialogService userDialogService,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IAccessControlManager accessControlManager,
            INavigationService navigationService,
            ICommandFactory commandFactory )
            : base(userDialogService,
                asyncRequestDispatcherFactory,
                accessControlManager,
                navigationService,
                commandFactory)
        {
            _userDialogService = userDialogService;
            _navigationService = navigationService;

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            DragStartingCommand = commandFactoryHelper.BuildDelegateCommand<object> ( () => DragStartingCommand, ExecuteDragStartingCommand );
            ViewDashboardCommand = commandFactoryHelper.BuildDelegateCommand<PatientSearchResultDto> (
                () => ViewDashboardCommand, ExecuteViewDashboard );
            ViewProfileCommand = commandFactoryHelper.BuildDelegateCommand<PatientSearchResultDto> ( () => ViewProfileCommand, ExecuteViewProfile );
            ApplyPaymentCommand = commandFactoryHelper.BuildDelegateCommand<PatientSearchResultDto> ( () => ApplyPaymentCommand, ExecuteApplyPayment );
            CreateNewAppointmentCommand = commandFactoryHelper.BuildDelegateCommand<PatientSearchResultDto> (
                () => CreateNewAppointmentCommand, ExecuteCreateNewAppointment );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:33,代码来源:MainPatientSearchViewModel.cs


示例6: PayorCoverageViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="PayorCoverageViewModel"/> class.
        /// </summary>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="commandFactory">The command factory.</param>
        /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param>
        /// <param name="userDialogService">The user dialog service.</param>
        /// <param name="popupService">The popup service.</param>
        /// <param name="navigationService">The navigation service.</param>
        public PayorCoverageViewModel(
            IAccessControlManager accessControlManager,
            ICommandFactory commandFactory,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IUserDialogService userDialogService,
            IPopupService popupService,
            INavigationService navigationService)
            : base(accessControlManager, commandFactory)
        {
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _userDialogService = userDialogService;
            _popupService = popupService;
            _navigationService = navigationService;

            PageSize = 50;

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            DeletePayorCoverageCommand = commandFactoryHelper.BuildDelegateCommand<PayorCoverageCacheDto> (
                () => DeletePayorCoverageCommand, ExecuteDeletePayorCoverageCommand );
            ShowPayorCoverageEditorCommand = commandFactoryHelper.BuildDelegateCommand<PayorCoverageCacheDto> (
                () => ShowPayorCoverageEditorCommand, ExecuteShowPayorCoverageEditorCommand );
            GoToPatientHistoryCommand = commandFactoryHelper.BuildDelegateCommand (
                () => GoToPatientHistoryCommand, ExecuteGoToPatientHistoryCommand );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:34,代码来源:PayorCoverageViewModel.cs


示例7: GetAddEmployeeCommand

        private AddEmployeeCommand GetAddEmployeeCommand()
        {
            fakeDapperHub = A.Fake<IDapperHub>();
            fakeCommandFactory = A.Fake<ICommandFactory>();

            return new AddEmployeeCommand(fakeDapperHub, fakeCommandFactory);
        }
开发者ID:SparkyCoder,项目名称:FakeLocity,代码行数:7,代码来源:AddEmployeeCommandTests.cs


示例8: Customer

 public Customer(
     ICommandFactory commandFactory,
     IContextFactory contextFactory)
 {
     _commandFactory = commandFactory;
     _contextFactory = contextFactory;
 }
开发者ID:Bikeman868,项目名称:Prius,代码行数:7,代码来源:Customer.cs


示例9: ReloadCommand

 public ReloadCommand(ICommandFactory commandFactory, IEventAggregator eventAggregator, 
     IOptionsController optionsController)
 {
     this.eventAggregator = eventAggregator;
     this.optionsController = optionsController;
     this.commandFactory = commandFactory;
 }
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:7,代码来源:ReloadCommand.cs


示例10: TaskAndTakGroupListViewModel

        public TaskAndTakGroupListViewModel(
            IUserDialogService userDialogService,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IAccessControlManager accessControlManager,
            IPopupService popupService,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _popupService = popupService;

            _userDialogService = userDialogService;
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;

            _pagedCollectionViewWrapper = new PagedCollectionViewWrapper<SystemRoleDto> ();

            InitializeGroupingDescriptions ();

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            CreateTaskOrTaskGroupCommand = commandFactoryHelper.BuildDelegateCommand<object> (
                () => CreateTaskOrTaskGroupCommand, ExecuteCreateTaskOrTaskGroupCommand );
            EditTaskOrTaskGroupCommand = commandFactoryHelper.BuildDelegateCommand<SystemRoleDto> (
                () => EditTaskOrTaskGroupCommand, ExecuteEditTaskOrTaskGroupCommand );
            CloneTaskOrTaskGroupCommand = commandFactoryHelper.BuildDelegateCommand<SystemRoleDto> (
                () => CloneTaskOrTaskGroupCommand, ExecuteCloneTaskOrTaskGroupCommand );
            DeleteTaskOrTaskGroupCommand = commandFactoryHelper.BuildDelegateCommand<SystemRoleDto> (
                () => DeleteTaskOrTaskGroupCommand, ExecuteDeleteTaskOrTaskGroup );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:28,代码来源:TaskAndTakGroupListViewModel.cs


示例11: LineViewModel

 public LineViewModel(IPointViewModel start, IPointViewModel finish,
     Action<PointTransit<ILineViewModel>> insertAction, ICommandFactory commandFactory)
 {
     Start = start;
     Finish = finish;
     InsertCommand = commandFactory.CreateCommand(o => insertAction(((PointTransit) o).Cast<ILineViewModel>()));
 }
开发者ID:PeletonSoft,项目名称:Sketch,代码行数:7,代码来源:LineViewModel.cs


示例12: OpenProjectCommand

 public OpenProjectCommand(IProjectController projectController, IEventAggregator eventAggregator, 
     ICommandFactory commandFactory)
 {
     this.projectController = projectController;
     this.eventAggregator = eventAggregator;
     this.commandFactory = commandFactory;
 }
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:7,代码来源:OpenProjectCommand.cs


示例13: PatientListViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="PatientListViewModel"/> class.
        /// </summary>
        /// <param name="userDialogService">The user dialog service.</param>
        /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="commandFactory">The command factory.</param>
        public PatientListViewModel(
            IUserDialogService userDialogService,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IAccessControlManager accessControlManager,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _userDialogService = userDialogService;
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            SearchCommand = commandFactoryHelper.BuildDelegateCommand ( () => SearchCommand, ExecuteSearchCommand );
            ClearCommand = commandFactoryHelper.BuildDelegateCommand ( () => ClearCommand, ExecuteClearCommand );

            PatientListCriteria = new PatientListCriteriaDto ();
            PatientListCriteria.PageSize = DEFAULTPAGESIZE;
            PatientListCriteria.LabResultFilterModifier = FilterModifier.EqualTo;
            PatientListCriteria.AgeFilterModifier = FilterModifier.EqualTo;

            FilterModifierList = new List<string>
                {
                    FilterModifier.EqualTo,
                    FilterModifier.GreaterThan,
                    FilterModifier.GreaterThanOrEqualTo,
                    FilterModifier.LessThen,
                    FilterModifier.LessThenOrEqualTo
                };
        }
开发者ID:divyang4481,项目名称:REM,代码行数:36,代码来源:PatientListViewModel.cs


示例14: EditJobFunctionViewModel

        public EditJobFunctionViewModel(
            IUserDialogService userDialogService,
            IEventAggregator eventAggregator,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IAccessControlManager accessControlManager,
            IPopupService popupService,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _userDialogService = userDialogService;
            _eventAggregator = eventAggregator;
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _popupService = popupService;

            Wrapper = new EditableDtoWrapper ();

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            SaveJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand ( () => SaveJobFunctionCommand, ExecuteSaveJobFunctionCommand );
            GrantSystemRoleCommand = commandFactoryHelper.BuildDelegateCommand ( () => GrantSystemRoleCommand, ExecuteGrantSystemRoleCommand );
            RevokeSystemRoleCommand = commandFactoryHelper.BuildDelegateCommand<SystemRoleDto> (
                () => RevokeSystemRoleCommand, ExecuteRevokeSystemRoleCommand );
            CancelCommand = commandFactoryHelper.BuildDelegateCommand ( () => CancelCommand, ExecuteCancelCommand );

            CreateCommand = NavigationCommandManager.BuildCommand ( () => CreateCommand, NavigateToCreateCommand );
            EditCommand = NavigationCommandManager.BuildCommand ( () => EditCommand, NavigateToEditCommand );
            CloneCommand = NavigationCommandManager.BuildCommand ( () => CloneCommand, NavigateToCloneCommand );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:28,代码来源:EditJobFunctionViewModel.cs


示例15: Main

 static void Main()
 {
     //NOTE: IoC (e.g. Windsor Container) could be introduced for easier dependency graph handling
     var clock = new Clock();
     var console = new Console();
     var messagePrinter = new MessagePrinter(console, clock);
     var messageRepository = new MessageRepository(clock);
     var subscriptionRepository = new SubscriptionRepository();
     var userRepository = new UserRepository();
     IEnumerable<ICommandFactory> allCommands = new ICommandFactory[]
     {
         new PostMessageCommand(),
         new ShowTimelineCommand(),
         new CreateSubscriptionCommand(),
         new ShowWallCommand()
     };
     var commandParser = new CommandParser(
         allCommands,
         userRepository,
         messageRepository,
         subscriptionRepository,
         messagePrinter);
     while (true)
     {
         commandParser.Parse(console.ReadLine()).Execute();
     }
 }
开发者ID:tekavec,项目名称:Tuite,代码行数:27,代码来源:Program.cs


示例16: ClaimOnHoldListViewModel

 /// <summary>
 /// Initializes a new instance of the <see cref="ClaimOnHoldListViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public ClaimOnHoldListViewModel( IAccessControlManager accessControlManager, ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     OnHoldList = new ObservableCollection<TempClaimModel> ();
     var claim = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -10 ),
             PayorName = "Aetna",
             ChargeAmount = ( decimal )50.0,
             PatientName = "Albert Smith",
             Message = "Not: This claim may need to be transfered to another payor.",
             PayorTypeName = "Commercial"
         };
     var claim2 = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -15 ),
             PayorName = "Medicaid",
             ChargeAmount = ( decimal )500.0,
             PatientName = "Tad Young",
             Message = "Note: The patient has indicated taht they would like to pay for this service out of pocket. Need to follow up.",
             PayorTypeName = "Medicare"
         };
     OnHoldList.Add ( claim );
     OnHoldList.Add ( claim2 );
 }
开发者ID:divyang4481,项目名称:REM,代码行数:30,代码来源:ClaimOnHoldListViewModel.cs


示例17: ProgramOfferingListViewModel

        public ProgramOfferingListViewModel(
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IAccessControlManager accessControlManager,
            IUserDialogService userDialogService,
            IPopupService popupService,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _pagedCollectionViewWrapper = new PagedCollectionViewWrapper<ProgramOfferingDto> ();
            _userDialogService = userDialogService;
            _popupService = popupService;

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            _showAllCommand = commandFactoryHelper.BuildDelegateCommand ( () => ShowAllCommand, ExecuteShowAll );
            _showActiveOnlyCommand = commandFactoryHelper.BuildDelegateCommand ( () => ShowActiveOnlyCommand, ExecuteShowActiveOnly );
            ToggleActiveIndicatorCommand = commandFactoryHelper.BuildDelegateCommand<ProgramOfferingDto> (
                () => ToggleActiveIndicatorCommand, ExecuteToggleActiveIndicator );
            ShowProgramOfferingAddCommand = commandFactoryHelper.BuildDelegateCommand<object> (
                () => ShowProgramOfferingAddCommand, ExecuteShowProgramOfferingAddCommand );
            ShowProgramOfferingEditCommand = commandFactoryHelper.BuildDelegateCommand<ProgramOfferingDto> (
                () => ShowProgramOfferingEditCommand, ExecuteShowProgramOfferingEditCommand );
            DeleteProgramOfferingCommand = commandFactoryHelper.BuildDelegateCommand<ProgramOfferingDto> (
                () => DeleteProgramOfferingCommand, ExecuteDeleteProgramOfferingCommand );

            _showOption = ShowOption.ShowActive;
            _filter = FilterByActiveStatus;
            InitializeGroupingDescriptions ();
        }
开发者ID:divyang4481,项目名称:REM,代码行数:30,代码来源:ProgramOfferingListViewModel.cs


示例18: SendC32ViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="SendC32ViewModel"/> class.
        /// </summary>
        /// <param name="userDialogService">The user dialog service.</param>
        /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="commandFactory">The command factory.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="popupService">The popup service.</param>
        /// <param name="currentUserContextService">The current user context service.</param>
        public SendC32ViewModel(
            IUserDialogService userDialogService,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IAccessControlManager accessControlManager,
            ICommandFactory commandFactory,
            IEventAggregator eventAggregator,
            IPopupService popupService,
            ICurrentUserContextService currentUserContextService )
            : base(accessControlManager, commandFactory)
        {
            _userDialogService = userDialogService;
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _eventAggregator = eventAggregator;
            _popupService = popupService;

            currentUserContextService.RegisterForContext ( ( cuc, b ) => _currentContext = cuc );

            // UI Commands
            SendC32Command = CommandFactoryHelper
                .CreateHelper ( this, commandFactory )
                .BuildDelegateCommand ( () => SendC32Command, ExecuteSendC32 );

            OpenAddressBookCommand = CommandFactoryHelper
                .CreateHelper ( this, commandFactory )
                .BuildDelegateCommand ( () => OpenAddressBookCommand, ExecuteOpenAddressBook );

            // Navigation Commands

            OpenSendC32ViewCommand = NavigationCommandManager.BuildCommand ( () => OpenSendC32ViewCommand, NavigateToOpenSendC32ViewCommand );

            _eventAggregator.GetEvent<DirectAddressRecipientSelectedEvent> ().Subscribe ( HandleDirectAddressRecipientSelectedEventHandler );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:42,代码来源:SendC32ViewModel.cs


示例19: ClinicianLabResultsTileViewModel

 /// <summary>
 /// Initializes a new instance of the <see cref="ClinicianLabResultsTileViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public ClinicianLabResultsTileViewModel(
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     //TODO:remove and get real data
     _labResults = new ObservableCollection<LabResultDto> ();
     _labResults.Add (
         new LabOrderDto
             {
                 PatientName = "Young, Tad",
                 LabTestResultNameCodedConcept = new CodedConceptDto
                     {
                         DisplayName = "Blood Glucose"
                     },
                 ReferenceRange = "34-75",
                 Value = 50,
                 UnitOfMeasureCode = "mg"
             } );
     _labResults.Add (
         new LabOrderDto
             {
                 PatientName = "Smith, Albert",
                 LabTestResultNameCodedConcept = new CodedConceptDto
                     {
                         DisplayName = "Heart Rate"
                     },
                 ReferenceRange = "75-120",
                 Value = 90,
                 UnitOfMeasureCode = "bpm"
             } );
 }
开发者ID:divyang4481,项目名称:REM,代码行数:37,代码来源:ClinicianLabResultsTileViewModel.cs


示例20: LocationWorkspaceViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="LocationWorkspaceViewModel"/> class.
        /// </summary>
        /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param>
        /// <param name="userDialogService">The user dialog service.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="navigationService">The navigation service.</param>
        /// <param name="commandFactory">The command factory.</param>
        public LocationWorkspaceViewModel(
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IUserDialogService userDialogService,
            IEventAggregator eventAggregator,
            IAccessControlManager accessControlManager,
            INavigationService navigationService,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _userDialogService = userDialogService;
            _eventAggregator = eventAggregator;
            _navigationService = navigationService;

            _eventAggregator.GetEvent<LocationChangedEvent> ().Subscribe (
                LocationChangedEventHandler,
                ThreadOption.BackgroundThread,
                false,
                FilterLocationChangedEvents );

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            GoToDashboardCommand = commandFactoryHelper.BuildDelegateCommand ( () => GoToDashboardCommand, ExecuteGoToDashboard );
            GoToProfileCommand = commandFactoryHelper.BuildDelegateCommand<object> ( () => GoToProfileCommand, ExecuteGoToProfile );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:34,代码来源:LocationWorkspaceViewModel.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ICommandHandler类代码示例发布时间:2022-05-24
下一篇:
C# ICommandExecutor类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap