C# Class TagTool.Commands.CommandContext

A context which contains commands that can be executed on an object.
Afficher le fichier Open project: TheGuardians/TagTool Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

AddCommand() public méthode

Adds a command to the context.
public AddCommand ( Command command ) : void
command Command The command to add.
Résultat void

CommandContext() public méthode

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.
Résultat System.Collections.Generic

GetCommand() public méthode

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.
Résultat Command