C# Class MapView.DirPicker

Purpose: general purpose folder/dir picker.
Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Public Methods

Method Description
DirPicker ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ExtractIconEx ( string sFile, int iIndex, IntPtr &piLargeVersion, IntPtr &piSmallVersion, int iAmountIcons ) : int
FindNodeInNodes ( string sNodeText, TreeNodeCollection tncNodes ) : TreeNode

Purpose: finds the node with the given sNodetext in the collection tncNodes. If found, a reference to the nodeobject is returned, otherwise null is returned

GetSubDirectoryNodes ( TreeNode tnSelectedNode ) : void

Purpose: checks if the selected node has childs. if not, the 'directory' the node represents is read and added as childnodes (1 node per directory entry). Each node will have a dummy node, so the treeview will show a [+] for fast browsing. This dummy node is removed with the first call to this routine.

InitTreeAndFillRoot ( ) : void

Purpose: Initializes the tree and fill the root node with the initial nodes.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ReflectCurrentPathInTree ( ) : void

Purpose: when the property for the current path is set, this path should be reflected in the tree visible. The complete path is searched in the tree, and per directory element in the passed path, that directory is added to the tree.

btnCancel_Click ( object sender, System e ) : void
btnOK_Click ( object sender, System e ) : void
tvMain_AfterCollapse ( object sender, System e ) : void
tvMain_AfterExpand ( object sender, System e ) : void
tvMain_AfterSelect ( object sender, System e ) : void
tvMain_BeforeExpand ( object sender, System e ) : void

Method Details

DirPicker() public method

public DirPicker ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void