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


C# ICommandManager类代码示例

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


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

示例1: RibbonViewModel

        public RibbonViewModel(IRegexService regexService, ICommandManager commandManager, 
            INavigationService navigationService, IConfigurationService configurationService, IUIVisualizerService uiVisualizerService,
            IWorkspaceManager workspaceManager, IPleaseWaitService pleaseWaitService, IFilterService filterService)
        {
            Argument.IsNotNull(() => regexService);
            Argument.IsNotNull(() => commandManager);
            Argument.IsNotNull(() => navigationService);
            Argument.IsNotNull(() => configurationService);
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => workspaceManager);
            Argument.IsNotNull(() => pleaseWaitService);
            Argument.IsNotNull(() => filterService);

            _regexService = regexService;
            Filter = filterService.Filter;
            _navigationService = navigationService;
            _configurationService = configurationService;
            _uiVisualizerService = uiVisualizerService;
            _workspaceManager = workspaceManager;
            _pleaseWaitService = pleaseWaitService;
            _filterService = filterService;

            SaveWorkspace = new Command(OnSaveWorkspaceExecute, OnSaveWorkspaceCanExecute);
            CreateWorkspace = new Command(OnCreateWorkspaceExecute);

            ShowSettings = new Command(OnShowSettingsExecute);
            ShowKeyboardMappings = new Command(OnShowKeyboardMappingsExecute);

            Exit = new Command(OnExitExecute);

            commandManager.RegisterCommand(Commands.Settings.General, ShowSettings, this);
            commandManager.RegisterCommand(Commands.File.Exit, Exit, this);

            Title = AssemblyHelper.GetEntryAssembly().Title();
        }
开发者ID:sk8tz,项目名称:LogViewer,代码行数:35,代码来源:RibbonViewModel.cs

示例2: DemoHiddenCommandContainer

        public DemoHiddenCommandContainer(ICommandManager commandManager, IMessageService messageService)
            : base(Commands.Demo.Hidden, commandManager)
        {
            Argument.IsNotNull(() => messageService);

            _messageService = messageService;
        }
开发者ID:WildGums,项目名称:Orchestra,代码行数:7,代码来源:DemoHiddenCommandContainer.cs

示例3: DelegateCommand

 public DelegateCommand(ICommandManager commandManager,
                        Action executeMethod)
     : this(commandManager,
            executeMethod,
            () => true)
 {
 }
开发者ID:tschroedter,项目名称:Selkie.WPF,代码行数:7,代码来源:DelegateCommand.cs

示例4: ApplicationExitCommandContainer

        public ApplicationExitCommandContainer(ICommandManager commandManager, INavigationService navigationService)
            : base(Commands.Application.Exit, commandManager)
        {
            Argument.IsNotNull(() => navigationService);

            _navigationService = navigationService;
        }
开发者ID:icygit,项目名称:Orchestra,代码行数:7,代码来源:ApplicationExitCommandContainer.cs

示例5: CommandRecipeHandler

 public CommandRecipeHandler(ICommandManager commandManager)
 {
     _commandManager = commandManager;
     _commandParser = new CommandParser();
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
开发者ID:polynomicworks,项目名称:Coevery-Framework,代码行数:7,代码来源:CommandRecipeHandler.cs

示例6: ContentViewModel

 protected ContentViewModel(AbstractWorkspace workspace, ICommandManager commandManager, ILoggerService logger)
 {
     _workspace = workspace;
     _commandManager = commandManager;
     _logger = logger;
     CloseCommand = new DelegateCommand(CloseDocument);
 }
开发者ID:vinodj,项目名称:Wide,代码行数:7,代码来源:ContentViewModel.cs

示例7: CommandActionsEntryPoint

 public CommandActionsEntryPoint(ICommandManager commandManager, IPresentationManager presentationManager, IPlaybackManager playbackManager, INavigationService navigationService, IScreensaverManager screensaverManager, ILogManager logManager)
 {
     _commandManager = commandManager;
     _defaultCommandActionMap = new DefaultCommandActionMap(presentationManager, playbackManager, navigationService, screensaverManager, logManager);
 
     _logger = logManager.GetLogger(GetType().Name);
 }
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:7,代码来源:CommandActionsEntryPoint.cs

示例8: CommandActionsEntryPoint

 public CommandActionsEntryPoint(ICommandManager commandManager, ITheaterApplicationHost appHost, IPresenter presentationManager, IPlaybackManager playbackManager, INavigator navigationService, /*IScreensaverManager screensaverManager,*/ ILogManager logManager, IEventAggregator events)
 {
     _commandManager = commandManager;
     _defaultCommandActionMap = new DefaultCommandActionMap(appHost, presentationManager, playbackManager, navigationService, /*screensaverManager,*/ logManager, events);
 
     _logger = logManager.GetLogger(GetType().Name);
 }
开发者ID:TomGillen,项目名称:MBT,代码行数:7,代码来源:CommandActionsEntryPoint.cs

示例9: CommandStep

 public CommandStep(ICommandManager commandManager,
     RecipeExecutionLogger logger)
     : base(logger)
 {
     _commandManager = commandManager;
     _commandParser = new CommandParser();
 }
开发者ID:yanghl22,项目名称:Orchard,代码行数:7,代码来源:CommandStep.cs

示例10: WebTestCurrentResultViewModel

 public WebTestCurrentResultViewModel(AbstractWorkspace workspace, ICommandManager commandManager, ILoggerService logger, IMenuService menuService, WebTestResultView view)
     : base(workspace, commandManager, logger, menuService)
 {
     _tooltip = "Web Test Results";
     _title = "Web Test Results";
     this.View = view;
 }
开发者ID:chandramouleswaran,项目名称:Hypertest,代码行数:7,代码来源:WebTestCurrentResultViewModel.cs

示例11: ApplicationAboutCommandContainer

        public ApplicationAboutCommandContainer(ICommandManager commandManager, IAboutService aboutService)
            : base(Commands.Application.About, commandManager)
        {
            Argument.IsNotNull(() => aboutService);

            _aboutService = aboutService;
        }
开发者ID:WildGums,项目名称:Orchestra,代码行数:7,代码来源:ApplicationAboutCommandContainer.cs

示例12: RibbonViewModel

        public RibbonViewModel(INavigationService navigationService, IUIVisualizerService uiVisualizerService,
            ICommandManager commandManager, IRecentlyUsedItemsService recentlyUsedItemsService, IProcessService processService,
            IMessageService messageService, ISelectDirectoryService selectDirectoryService)
        {
            Argument.IsNotNull(() => navigationService);
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => commandManager);
            Argument.IsNotNull(() => recentlyUsedItemsService);
            Argument.IsNotNull(() => processService);
            Argument.IsNotNull(() => messageService);
            Argument.IsNotNull(() => selectDirectoryService);

            _navigationService = navigationService;
            _uiVisualizerService = uiVisualizerService;
            _recentlyUsedItemsService = recentlyUsedItemsService;
            _processService = processService;
            _messageService = messageService;
            _selectDirectoryService = selectDirectoryService;

            OpenProject = new Command(OnOpenProjectExecute);
            OpenRecentlyUsedItem = new Command<string>(OnOpenRecentlyUsedItemExecute);
            OpenInExplorer = new Command<string>(OnOpenInExplorerExecute);
            UnpinItem = new Command<string>(OnUnpinItemExecute);
            PinItem = new Command<string>(OnPinItemExecute);

            ShowKeyboardMappings = new Command(OnShowKeyboardMappingsExecute);

            commandManager.RegisterCommand("File.Open", OpenProject, this);

            var assembly = AssemblyHelper.GetEntryAssembly();
            Title = assembly.Title();
        }
开发者ID:icygit,项目名称:Orchestra,代码行数:32,代码来源:RibbonViewModel.cs

示例13: HelpCommand

 public HelpCommand(ICommandManager commandManager, string commandExe, string productName, string helpUrl)
 {
     _commandManager = commandManager;
     _commandExe = commandExe;
     _productName = productName;
     _helpUrl = helpUrl;
 }
开发者ID:atrevisan,项目名称:NuGetGallery,代码行数:7,代码来源:HelpCommand.cs

示例14: CommandRecipeHandler

 public CommandRecipeHandler(ICommandManager commandManager, IRecipeJournal recipeJournal) {
     _commandManager = commandManager;
     _recipeJournal = recipeJournal;
     _commandParser = new CommandParser();
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
开发者ID:killgitbug,项目名称:Orchard,代码行数:7,代码来源:CommandRecipeHandler.cs

示例15: DemoShowMessageBoxCommandContainer

        public DemoShowMessageBoxCommandContainer(ICommandManager commandManager, IMessageService messageService)
            : base(Commands.Demo.ShowMessageBox, commandManager)
        {
            Argument.IsNotNull(() => messageService);

            _messageService = messageService;
        }
开发者ID:icygit,项目名称:Orchestra,代码行数:7,代码来源:DemoShowMessageBoxCommandContainer.cs


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