C# 클래스 Nexus.UI.Controls.FileSystemTreeViewBase

A tree view that allow browsing through a file system.
The tree view will browse into archives.
상속: System.Windows.Forms.MultiSelectTreeView
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddPath ( FileSystemTreeNode p_tndRoot, string p_strFile ) : FileSystemTreeNode

This adds a file/folder to the source file structure.

AddPath ( string p_strFile ) : void

Adds the given file to the source tree.

AddPaths ( FileSystemTreeNode p_tndRoot, string p_strFileNames ) : void

Addes the specified files to the source tree.

AddPaths ( string p_strFileNames ) : void

Addes the specified files to the source tree.

FileSystemTreeViewBase ( ) : System

The default constructor.

RemoveNodes ( IList p_lstNodes ) : void

Removes the specified nodes from the tree view.

The user is asked to confirm the removal.

SetSelectedNode ( string p_strPath ) : void

Sets the selected node to the one specifide by the given path.

보호된 메소드들

메소드 설명
FindNearestAncestor ( FileSystemTreeNode p_tndRoot, string p_strPath, Queue &p_queMissingPath ) : FileSystemTreeNode

Finds the specified node, or the specified node's nearest ancestor if the specified node does not exist.

LoadChildren ( FileSystemTreeNode p_tndFolder ) : void

Loads the children of the given node.

OnKeyDown ( KeyEventArgs e ) : void

Raises the Control.OnKeyDown event of the tree view.

This makes the delete key remove the selected nodes.

OnNodeAdded ( NodesChangedEventArgs e ) : void

Raises the NodeAdded event.

OnNodeRemoved ( NodesChangedEventArgs e ) : void

Raises the NodeRemoved event.

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.

메소드 상세

AddPath() 공개 메소드

This adds a file/folder to the source file structure.
public AddPath ( FileSystemTreeNode p_tndRoot, string p_strFile ) : FileSystemTreeNode
p_tndRoot FileSystemTreeNode The node to which to add the file/folder.
p_strFile string The path to add to the source file structure.
리턴 FileSystemTreeNode

AddPath() 공개 메소드

Adds the given file to the source tree.
public AddPath ( string p_strFile ) : void
p_strFile string The file to add.
리턴 void

AddPaths() 공개 메소드

Addes the specified files to the source tree.
public AddPaths ( FileSystemTreeNode p_tndRoot, string p_strFileNames ) : void
p_tndRoot FileSystemTreeNode The node to which to add the file/folder.
p_strFileNames string The paths to add to the source tree.
리턴 void

AddPaths() 공개 메소드

Addes the specified files to the source tree.
public AddPaths ( string p_strFileNames ) : void
p_strFileNames string The paths to add to the source tree.
리턴 void

FileSystemTreeViewBase() 공개 메소드

The default constructor.
public FileSystemTreeViewBase ( ) : System
리턴 System

FindNearestAncestor() 보호된 메소드

Finds the specified node, or the specified node's nearest ancestor if the specified node does not exist.
protected FindNearestAncestor ( FileSystemTreeNode p_tndRoot, string p_strPath, Queue &p_queMissingPath ) : FileSystemTreeNode
p_tndRoot FileSystemTreeNode The node under which to search for the specified node.
p_strPath string The path to the node to be found.
p_queMissingPath Queue An out parameter that returns the path parts that were not found.
리턴 FileSystemTreeNode

LoadChildren() 보호된 메소드

Loads the children of the given node.
protected LoadChildren ( FileSystemTreeNode p_tndFolder ) : void
p_tndFolder FileSystemTreeNode The node whose children are to be loaded.
리턴 void

OnKeyDown() 보호된 메소드

Raises the Control.OnKeyDown event of the tree view.
This makes the delete key remove the selected nodes.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A describing the event arguments.
리턴 void

OnNodeAdded() 보호된 메소드

Raises the NodeAdded event.
protected OnNodeAdded ( NodesChangedEventArgs e ) : void
e NodesChangedEventArgs A describing the event arguments.
리턴 void

OnNodeRemoved() 보호된 메소드

Raises the NodeRemoved event.
protected OnNodeRemoved ( NodesChangedEventArgs e ) : void
e NodesChangedEventArgs A describing the event arguments.
리턴 void

RemoveNodes() 공개 메소드

Removes the specified nodes from the tree view.
The user is asked to confirm the removal.
public RemoveNodes ( IList p_lstNodes ) : void
p_lstNodes IList The nodes to remove.
리턴 void

SetNodeImage() 보호된 메소드

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

SetSelectedNode() 공개 메소드

Sets the selected node to the one specifide by the given path.
public SetSelectedNode ( string p_strPath ) : void
p_strPath string The path to the node to be selected.
리턴 void

ShouldLoadChildren() 보호된 메소드

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.
리턴 bool