C# Class FdoToolbox.Base.Controls.ObjectExplorer

Inheritance: ViewContent, IObjectExplorer
Exibir arquivo Open project: jumpinjackie/fdotoolbox Class Usage Examples

Public Methods

Method Description
GetContextMenu ( string nodeType ) : ContextMenuStrip

Gets the context menu.

GetRootNode ( string name ) : TreeNode

Gets the root node in the Object Explorer

GetSelectedNode ( ) : TreeNode

Gets the selected node in the Object Explorer

ObjectExplorer ( ) : System

Initializes a new instance of the ObjectExplorer class.

RegisterContextMenu ( string nodeType, string addInTreePath ) : void

Registers a context menu in the Object Explorer

RegisterImage ( string imgResource ) : void

Registers an image resource in the Object Explorer

RegisterRootNode ( string name, string text, string imgResource, string addInTreePath ) : void

Registers the root node in the Object Explorer

Private Methods

Method Description
InitTreeView ( ) : void
OnAfterExpand ( object sender, TreeViewEventArgs e ) : void
OnAfterSelect ( object sender, TreeViewEventArgs e ) : void

Method Details

GetContextMenu() public method

Gets the context menu.
public GetContextMenu ( string nodeType ) : ContextMenuStrip
nodeType string Type of the node.
return System.Windows.Forms.ContextMenuStrip

GetRootNode() public method

Gets the root node in the Object Explorer
public GetRootNode ( string name ) : TreeNode
name string The name.
return System.Windows.Forms.TreeNode

GetSelectedNode() public method

Gets the selected node in the Object Explorer
public GetSelectedNode ( ) : TreeNode
return System.Windows.Forms.TreeNode

ObjectExplorer() public method

Initializes a new instance of the ObjectExplorer class.
public ObjectExplorer ( ) : System
return System

RegisterContextMenu() public method

Registers a context menu in the Object Explorer
public RegisterContextMenu ( string nodeType, string addInTreePath ) : void
nodeType string Type of the node.
addInTreePath string The add in tree path.
return void

RegisterImage() public method

Registers an image resource in the Object Explorer
public RegisterImage ( string imgResource ) : void
imgResource string The img resource.
return void

RegisterRootNode() public method

Registers the root node in the Object Explorer
public RegisterRootNode ( string name, string text, string imgResource, string addInTreePath ) : void
name string The name.
text string The text.
imgResource string The img resource.
addInTreePath string The add in tree path.
return void