C# Класс MapView.DirPicker

Purpose: general purpose folder/dir picker.
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DirPicker ( ) : System

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

DirPicker() публичный Метод

public DirPicker ( ) : System
Результат System

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void