C# Класс Microsoft.Languages.Editor.Controller.Controller

Command controller (Model-View-Controller pattern)
Наследование: ICommandTarget, IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Controller System

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

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

Adds command to the controller command table

AddCommandSet ( IEnumerable commands ) : void

Adds a set of commands to the controller command table

Controller ( ICommandTarget chainedController ) : System
Dispose ( ) : void
Find ( System.Guid group, int id ) : ICommand
GetGroupCommands ( System.Guid group ) : ICommand>.IDictionary

Retrieves commands for a particular group

Invoke ( System.Guid group, int id, object inputArg, object &outputArg ) : Microsoft.R.Components.Controller.CommandResult
NonRoutedStatus ( System.Guid group, int id, object inputArg ) : CommandStatus

Non-routed status allows controller to return command status before contained language processes it. For example, HTML controller may decide to handle comment/uncomment command at HTML level rather than pass it down to CSS, JScript, C#, etc. Handling status before regular controller chain allows top level controller to intercept command status.

PostProcessInvoke ( Microsoft.R.Components.Controller.CommandResult result, System.Guid group, int id, object inputArg, object &outputArg ) : void
Status ( System.Guid group, int id ) : CommandStatus

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
Controller ( ) : System

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

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

Adds command to the controller command table
public AddCommand ( ICommand command ) : void
command ICommand Command object
Результат void

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

Adds a set of commands to the controller command table
public AddCommandSet ( IEnumerable commands ) : void
commands IEnumerable List of commands
Результат void

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

public Controller ( ICommandTarget chainedController ) : System
chainedController ICommandTarget
Результат System

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

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

public Find ( System.Guid group, int id ) : ICommand
group System.Guid
id int
Результат ICommand

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

Retrieves commands for a particular group
public GetGroupCommands ( System.Guid group ) : ICommand>.IDictionary
group System.Guid Group id
Результат ICommand>.IDictionary

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

public Invoke ( System.Guid group, int id, object inputArg, object &outputArg ) : Microsoft.R.Components.Controller.CommandResult
group System.Guid
id int
inputArg object
outputArg object
Результат Microsoft.R.Components.Controller.CommandResult

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

Non-routed status allows controller to return command status before contained language processes it. For example, HTML controller may decide to handle comment/uncomment command at HTML level rather than pass it down to CSS, JScript, C#, etc. Handling status before regular controller chain allows top level controller to intercept command status.
public NonRoutedStatus ( System.Guid group, int id, object inputArg ) : CommandStatus
group System.Guid
id int
inputArg object
Результат CommandStatus

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

public PostProcessInvoke ( Microsoft.R.Components.Controller.CommandResult result, System.Guid group, int id, object inputArg, object &outputArg ) : void
result Microsoft.R.Components.Controller.CommandResult
group System.Guid
id int
inputArg object
outputArg object
Результат void

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

public Status ( System.Guid group, int id ) : CommandStatus
group System.Guid
id int
Результат CommandStatus