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
Afficher le fichier Open project: NexusMods/NexusModManager-4.5

Méthodes publiques

Méthode Description
FileSystemTreeView ( ) : System

The default constructor.

Méthodes protégées

Méthode 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 méthode

The default constructor.
public FileSystemTreeView ( ) : System
Résultat System

LoadGrandChildren() protected méthode

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.
Résultat void

OnAfterLabelEdit() protected méthode

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.
Résultat void

OnBeforeExpand() protected méthode

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.
Résultat void

OnBeforeLabelEdit() protected méthode

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.
Résultat void

SetNodeImage() protected méthode

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

ShouldLoadChildren() protected méthode

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.
Résultat bool