Table of Contents

Class CommandService

Namespace
Gemini.Framework.Commands
Assembly
Gemini.dll
[Export(typeof(ICommandService))]
public class CommandService : ICommandService
Inheritance
CommandService
Implements
Inherited Members

Constructors

CommandService()

public CommandService()

Methods

GetCommand(CommandDefinitionBase, ILayoutItem)

Gets the command for a command definition and layout item.

public Command GetCommand(CommandDefinitionBase commandDefinition, ILayoutItem layoutItem)

Parameters

commandDefinition CommandDefinitionBase

The command definition for the command.

layoutItem ILayoutItem

The layout item for the command. Null for a global command.

Returns

Command

The associated command.

GetCommandDefinition(Type)

public CommandDefinitionBase GetCommandDefinition(Type commandDefinitionType)

Parameters

commandDefinitionType Type

Returns

CommandDefinitionBase

GetTargetableCommand(Command)

public TargetableCommand GetTargetableCommand(Command command)

Parameters

command Command

Returns

TargetableCommand