C# 클래스 TagTool.Commands.CommandContext

A context which contains commands that can be executed on an object.
파일 보기 프로젝트 열기: TheGuardians/TagTool 1 사용 예제들

공개 메소드들

메소드 설명
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