C# Класс Canguro.Controller.Controller

Показать файл Открыть проект Примеры использования класса

Открытые свойства

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

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

Метод Описание
Execute ( string command ) : bool

Este método es llamado como resultado de una acción del usuario, no de algún otro comando. Por esto sus mensajes de error se mandan al usuario como avisos y se resuelven aquí mismo en lugar de aventar excepciones.

ExecuteAsync ( string command ) : void

Executes a command asynchronously (on next Application.Idle). See Execute for more details.

IdleReset ( ) : void
LoadModel ( string path ) : void

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

Метод Описание
Controller ( ) : System
IdleStart ( IdleReason reason ) : void
IdleStop ( IdleReason reason ) : void
ProcessCustomMessages ( Message &msg ) : void
SystemEvents_PowerModeChanged ( object sender, Microsoft e ) : void
application_Idle ( object sender, EventArgs e ) : void
endModelCommand ( ) : void

Method called when a model command ends or is cancelled

flushExecuteQueue ( object sender, EventArgs e ) : void
getFocusControl ( ) : Control

Method to retrieve the control that currently has the Focus.

gridHasFocus ( object sender ) : bool
loadCommands ( ) : void

Loads commands (view and model) as plug-ins using the Activator (when applicable)

loadStdModelCommands ( ) : void

Loads standard model commands

loadViewCommands ( ) : void

Loads standard view commands

model_ModelChanged ( object sender, EventArgs e ) : void
model_ModelReset ( object sender, EventArgs e ) : void
model_ResultsArrived ( object sender, EventArgs e ) : void
model_SelectionChanged ( object sender, Canguro e ) : void
processHotKeys ( object sender, KeyEventArgs e ) : void

Method to dispatch HotKeys and act accordingly. It catches any KeyDown events coming from any control inside MainFrm and from MainFrm itself.

scenePanel_MouseDown ( object sender, System e ) : void

Method to dispatch the MouseDown event from the ScenePanel and forward it to the current ViewCommand. It is responsible for capturing the mouse.

scenePanel_MouseMove ( object sender, System e ) : void

Method to dispatch the MouseMove event from the ScenePanel and forward it to the current ViewCommand. It is responsible of updating the current view if necessary and of setting the new tracking point for the active TrackingService.

scenePanel_MouseUp ( object sender, System e ) : void

Method to dispatch the MouseUp event from the ScenePanel and forward it to the current ViewCommand. This method is responsible for releasing mouse capture, ending view commands and updating views accordingly.

scenePanel_MouseWheel ( object sender, System e ) : void

Method to dispatch the MouseWheel event from the ScenePanel.

spinteraction_ActiveViewChange ( object sender, GraphicViewManager e ) : void

Method to dispatch active view change events. This occurs when another view is selected, the view gets resized, the layout changes, etc. It resets the Selection Command.

spinteraction_looseFocusAfterClick ( object sender, EventArgs e ) : void

Method to act as a Scenepanel LooseFocus event (i.e. a gridView Click event). It resets the Selection Command.

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

Execute() публичный метод

Este método es llamado como resultado de una acción del usuario, no de algún otro comando. Por esto sus mensajes de error se mandan al usuario como avisos y se resuelven aquí mismo en lugar de aventar excepciones.
public Execute ( string command ) : bool
command string El nombre del comando a ejecutar
Результат bool

ExecuteAsync() публичный метод

Executes a command asynchronously (on next Application.Idle). See Execute for more details.
public ExecuteAsync ( string command ) : void
command string The command to be asynchronously executed
Результат void

IdleReset() публичный метод

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

LoadModel() публичный метод

public LoadModel ( string path ) : void
path string
Результат void

Описание свойств

Instance публичное статическое свойство

public static Controller,Canguro.Controller Instance
Результат Controller