本文整理汇总了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();
}
示例2: DemoHiddenCommandContainer
public DemoHiddenCommandContainer(ICommandManager commandManager, IMessageService messageService)
: base(Commands.Demo.Hidden, commandManager)
{
Argument.IsNotNull(() => messageService);
_messageService = messageService;
}
示例3: DelegateCommand
public DelegateCommand(ICommandManager commandManager,
Action executeMethod)
: this(commandManager,
executeMethod,
() => true)
{
}
示例4: ApplicationExitCommandContainer
public ApplicationExitCommandContainer(ICommandManager commandManager, INavigationService navigationService)
: base(Commands.Application.Exit, commandManager)
{
Argument.IsNotNull(() => navigationService);
_navigationService = navigationService;
}
示例5: CommandRecipeHandler
public CommandRecipeHandler(ICommandManager commandManager)
{
_commandManager = commandManager;
_commandParser = new CommandParser();
Logger = NullLogger.Instance;
T = NullLocalizer.Instance;
}
示例6: ContentViewModel
protected ContentViewModel(AbstractWorkspace workspace, ICommandManager commandManager, ILoggerService logger)
{
_workspace = workspace;
_commandManager = commandManager;
_logger = logger;
CloseCommand = new DelegateCommand(CloseDocument);
}
示例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);
}
示例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);
}
示例9: CommandStep
public CommandStep(ICommandManager commandManager,
RecipeExecutionLogger logger)
: base(logger)
{
_commandManager = commandManager;
_commandParser = new CommandParser();
}
示例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;
}
示例11: ApplicationAboutCommandContainer
public ApplicationAboutCommandContainer(ICommandManager commandManager, IAboutService aboutService)
: base(Commands.Application.About, commandManager)
{
Argument.IsNotNull(() => aboutService);
_aboutService = aboutService;
}
示例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();
}
示例13: HelpCommand
public HelpCommand(ICommandManager commandManager, string commandExe, string productName, string helpUrl)
{
_commandManager = commandManager;
_commandExe = commandExe;
_productName = productName;
_helpUrl = helpUrl;
}
示例14: CommandRecipeHandler
public CommandRecipeHandler(ICommandManager commandManager, IRecipeJournal recipeJournal) {
_commandManager = commandManager;
_recipeJournal = recipeJournal;
_commandParser = new CommandParser();
Logger = NullLogger.Instance;
T = NullLocalizer.Instance;
}
示例15: DemoShowMessageBoxCommandContainer
public DemoShowMessageBoxCommandContainer(ICommandManager commandManager, IMessageService messageService)
: base(Commands.Demo.ShowMessageBox, commandManager)
{
Argument.IsNotNull(() => messageService);
_messageService = messageService;
}