C# Class Canguro.Controller.Controller

Mostra file Open project: rforsbach/Treu-Structure Class Usage Examples

Public Properties

Property Type Description
Instance Controller

Public Methods

Method Description
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

Private Methods

Method Description
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.

Method Details

Execute() public method

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
return bool

ExecuteAsync() public method

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
return void

IdleReset() public method

public IdleReset ( ) : void
return void

LoadModel() public method

public LoadModel ( string path ) : void
path string
return void

Property Details

Instance public_oe static_oe property

public static Controller,Canguro.Controller Instance
return Controller