C# Class Nexus.UI.Controls.FileSystemTreeView

A tree view that allow browsing through a file system.
The tree view will browse into archives.
Inheritance: FileSystemTreeViewBase
Show file Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
FileSystemTreeView ( ) : System

The default constructor.

Protected Methods

Method Description
LoadGrandChildren ( FileSystemTreeNode p_tndFolder ) : void

Loads the grand children of the given node.

OnAfterLabelEdit ( System.Windows.Forms.NodeLabelEditEventArgs e ) : void

Raise the TreeView.AfterLabelEdit event.

This sorts the newly renamed node.

OnBeforeExpand ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void

Raises the TreeView.BeforeExpand event of the tree view.

This handles retrieving the sub-files and sub-folders to display in the tree view.

OnBeforeLabelEdit ( System.Windows.Forms.NodeLabelEditEventArgs e ) : void

Raise the TreeView.BeforeLabelEdit event.

This prevents drive nodes from being renamed.

SetNodeImage ( FileSystemTreeNode p_fsnItem ) : void

Sets the image of the given node.

ShouldLoadChildren ( FileSystemTreeNode p_fsnItem ) : bool

Determines if the children of the given node should be loaded.

Method Details

FileSystemTreeView() public method

The default constructor.
public FileSystemTreeView ( ) : System
return System

LoadGrandChildren() protected method

Loads the grand children of the given node.
protected LoadGrandChildren ( FileSystemTreeNode p_tndFolder ) : void
p_tndFolder FileSystemTreeNode The node whose grand children are to be loaded.
return void

OnAfterLabelEdit() protected method

Raise the TreeView.AfterLabelEdit event.
This sorts the newly renamed node.
protected OnAfterLabelEdit ( System.Windows.Forms.NodeLabelEditEventArgs e ) : void
e System.Windows.Forms.NodeLabelEditEventArgs A describing the event arguments.
return void

OnBeforeExpand() protected method

Raises the TreeView.BeforeExpand event of the tree view.
This handles retrieving the sub-files and sub-folders to display in the tree view.
protected OnBeforeExpand ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void
e System.Windows.Forms.TreeViewCancelEventArgs A that describes the event arguments.
return void

OnBeforeLabelEdit() protected method

Raise the TreeView.BeforeLabelEdit event.
This prevents drive nodes from being renamed.
protected OnBeforeLabelEdit ( System.Windows.Forms.NodeLabelEditEventArgs e ) : void
e System.Windows.Forms.NodeLabelEditEventArgs A describing the event arguments.
return void

SetNodeImage() protected method

Sets the image of the given node.
protected SetNodeImage ( FileSystemTreeNode p_fsnItem ) : void
p_fsnItem FileSystemTreeNode The node whose image shuld be set.
return void

ShouldLoadChildren() protected method

Determines if the children of the given node should be loaded.
protected ShouldLoadChildren ( FileSystemTreeNode p_fsnItem ) : bool
p_fsnItem FileSystemTreeNode The node for which it is to be determined if the children should be loaded.
return bool