C# Класс SIL.FieldWorks.Common.Controls.ChooserTreeView

Наследование: SIL.FieldWorks.Common.Controls.TriStateTreeView
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_initiallyCheckedNodes List
m_initiallySelectedHvos List

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

Метод Описание
Load ( ICmPossibilityList list, List initiallySelectedHvos ) : void

Loads the tree with the specified list of possibilities.

Load ( ICmPossibilityList list, List initiallySelectedHvos, Label lblSelectedCategories ) : void

Loads the tree with the specified list of possibilities.

UpdateSelectedLabel ( ) : void

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

Метод Описание
CreateNode ( ICmPossibility possibility ) : TreeNode

Create a node for a possibility (including populating its child nodes)

GetPossibilityText ( ICmPossibility possibility ) : string

Get the text representing the possibility.

GetSelectedItems ( TreeNode node, List selectedItems ) : void

Gets the selected items for the specified node and its children.

IsNodeSelected ( TreeNode node ) : bool

Gets a value indicating whether or not the specified node is selected. For it to be selected, it has to checked while its parent is not.

OnAfterCheck ( TreeViewEventArgs e ) : void

OnHandleCreated ( EventArgs e ) : void

Overrides M:System.Windows.Forms.Control.OnHandleCreated(System.EventArgs).

PopulateChildNodes ( TreeNode node, ICmPossibility possibility ) : void

Populate the node with the children of the possibility. (recursive)

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

Метод Описание
GetSelectedPossibilites ( TreeNode node ) : IEnumerable

Gets the selected possibilites for the specified node and its children.

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

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

Create a node for a possibility (including populating its child nodes)
protected CreateNode ( ICmPossibility possibility ) : TreeNode
possibility ICmPossibility
Результат System.Windows.Forms.TreeNode

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

Get the text representing the possibility.
protected GetPossibilityText ( ICmPossibility possibility ) : string
possibility ICmPossibility
Результат string

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

Gets the selected items for the specified node and its children.
protected GetSelectedItems ( TreeNode node, List selectedItems ) : void
node System.Windows.Forms.TreeNode
selectedItems List
Результат void

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

Gets a value indicating whether or not the specified node is selected. For it to be selected, it has to checked while its parent is not.
protected IsNodeSelected ( TreeNode node ) : bool
node System.Windows.Forms.TreeNode
Результат bool

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

Loads the tree with the specified list of possibilities.
public Load ( ICmPossibilityList list, List initiallySelectedHvos ) : void
list ICmPossibilityList
initiallySelectedHvos List
Результат void

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

Loads the tree with the specified list of possibilities.
public Load ( ICmPossibilityList list, List initiallySelectedHvos, Label lblSelectedCategories ) : void
list ICmPossibilityList
initiallySelectedHvos List
lblSelectedCategories System.Windows.Forms.Label
Результат void

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

protected OnAfterCheck ( TreeViewEventArgs e ) : void
e System.Windows.Forms.TreeViewEventArgs
Результат void

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

Overrides M:System.Windows.Forms.Control.OnHandleCreated(System.EventArgs).
protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Результат void

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

Populate the node with the children of the possibility. (recursive)
protected PopulateChildNodes ( TreeNode node, ICmPossibility possibility ) : void
node System.Windows.Forms.TreeNode given node
possibility ICmPossibility The possibility whose subpossibilities will be added as /// the child nodes
Результат void

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

public UpdateSelectedLabel ( ) : void
Результат void

Описание свойств

m_initiallyCheckedNodes защищенное свойство

protected List m_initiallyCheckedNodes
Результат List

m_initiallySelectedHvos защищенное свойство

protected List m_initiallySelectedHvos
Результат List