C# Class FdoToolbox.Base.Workbench

Represents the main application window
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: jumpinjackie/fdotoolbox Class Usage Examples

Méthodes publiques

Méthode Description
AddToolbar ( string name, ToolStrip toolbar, ToolbarRegion region, bool canToggleVisibility ) : void

Adds the toolbar.

GetToolbar ( string name ) : ToolStrip

Gets the toolbar.

InitializeWorkbench ( string title ) : void

Initializes the workbench.

InvokeMethod ( Delegate del ) : void

Invokes the method in the GUI thread context

SetStatusLabel ( string text ) : void

Sets the status label.

SetTitle ( string title ) : void

Sets the title.

SetToolbarVisibility ( string toolbarName, bool visible ) : void

Sets the toolbar visibility.

ShowContent ( IViewContent vc, ViewRegion region ) : void

Shows the content.

Méthodes protégées

Méthode Description
WndProc ( Message &m ) : void

Private Methods

Méthode Description
InitializeComponent ( ) : void
OnApplicationIdle ( object sender, EventArgs e ) : void
UpdateMenuItemStatus ( ) : void

Update Enabled/Visible state of items in the main menu based on conditions

Workbench ( ) : System

Method Details

AddToolbar() public méthode

Adds the toolbar.
public AddToolbar ( string name, ToolStrip toolbar, ToolbarRegion region, bool canToggleVisibility ) : void
name string The name.
toolbar System.Windows.Forms.ToolStrip The toolbar.
region ToolbarRegion The region.
canToggleVisibility bool if set to true [can toggle visibility].
Résultat void

GetToolbar() public méthode

Gets the toolbar.
public GetToolbar ( string name ) : ToolStrip
name string The name.
Résultat System.Windows.Forms.ToolStrip

InitializeWorkbench() public static méthode

Initializes the workbench.
public static InitializeWorkbench ( string title ) : void
title string
Résultat void

InvokeMethod() public méthode

Invokes the method in the GUI thread context
public InvokeMethod ( Delegate del ) : void
del System.Delegate The delegate to invoke
Résultat void

SetStatusLabel() public méthode

Sets the status label.
public SetStatusLabel ( string text ) : void
text string The text.
Résultat void

SetTitle() public méthode

Sets the title.
public SetTitle ( string title ) : void
title string The title.
Résultat void

SetToolbarVisibility() public méthode

Sets the toolbar visibility.
public SetToolbarVisibility ( string toolbarName, bool visible ) : void
toolbarName string Name of the toolbar.
visible bool if set to true [visible].
Résultat void

ShowContent() public méthode

Shows the content.
public ShowContent ( IViewContent vc, ViewRegion region ) : void
vc IViewContent The vc.
region ViewRegion The region.
Résultat void

WndProc() protected méthode

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
Résultat void