C# Класс TagTool.Commands.CommandContext

A context which contains commands that can be executed on an object.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddCommand ( Command command ) : void

Adds a command to the context.

CommandContext ( CommandContext parent, string name ) : System.Collections.Generic

Initializes a new instance of the CommandContext class.

GetCommand ( string name ) : Command

Looks up a command in the context by name. Commands inherited from parent contexts will be included.

Описание методов

AddCommand() публичный Метод

Adds a command to the context.
public AddCommand ( Command command ) : void
command Command The command to add.
Результат void

CommandContext() публичный Метод

Initializes a new instance of the CommandContext class.
public CommandContext ( CommandContext parent, string name ) : System.Collections.Generic
parent CommandContext The parent context. Can be null if none.
name string The context's name.
Результат System.Collections.Generic

GetCommand() публичный Метод

Looks up a command in the context by name. Commands inherited from parent contexts will be included.
public GetCommand ( string name ) : Command
name string The name of the command to retrieve.
Результат Command