C# Class FdoToolbox.Base.Workbench

Represents the main application window
Inheritance: System.Windows.Forms.Form
ファイルを表示 Open project: jumpinjackie/fdotoolbox Class Usage Examples

Public Methods

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

Protected Methods

Method Description
WndProc ( Message &m ) : void

Private Methods

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

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

GetToolbar() public method

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

InitializeWorkbench() public static method

Initializes the workbench.
public static InitializeWorkbench ( string title ) : void
title string
return void

InvokeMethod() public method

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

SetStatusLabel() public method

Sets the status label.
public SetStatusLabel ( string text ) : void
text string The text.
return void

SetTitle() public method

Sets the title.
public SetTitle ( string title ) : void
title string The title.
return void

SetToolbarVisibility() public method

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

ShowContent() public method

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

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void