C# Class SIL.FieldWorks.Common.Controls.ChooserTreeView

Inheritance: SIL.FieldWorks.Common.Controls.TriStateTreeView
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство Type Description
m_initiallyCheckedNodes List
m_initiallySelectedHvos List

Méthodes publiques

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

Méthodes protégées

Méthode Description
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)

Private Methods

Méthode Description
GetSelectedPossibilites ( TreeNode node ) : IEnumerable

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

Method Details

CreateNode() protected méthode

Create a node for a possibility (including populating its child nodes)
protected CreateNode ( ICmPossibility possibility ) : TreeNode
possibility ICmPossibility
Résultat System.Windows.Forms.TreeNode

GetPossibilityText() protected méthode

Get the text representing the possibility.
protected GetPossibilityText ( ICmPossibility possibility ) : string
possibility ICmPossibility
Résultat string

GetSelectedItems() protected méthode

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

IsNodeSelected() protected méthode

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

Load() public méthode

Loads the tree with the specified list of possibilities.
public Load ( ICmPossibilityList list, List initiallySelectedHvos ) : void
list ICmPossibilityList
initiallySelectedHvos List
Résultat void

Load() public méthode

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

OnAfterCheck() protected méthode

protected OnAfterCheck ( TreeViewEventArgs e ) : void
e System.Windows.Forms.TreeViewEventArgs
Résultat void

OnHandleCreated() protected méthode

Overrides M:System.Windows.Forms.Control.OnHandleCreated(System.EventArgs).
protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Résultat void

PopulateChildNodes() protected méthode

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

UpdateSelectedLabel() public méthode

public UpdateSelectedLabel ( ) : void
Résultat void

Property Details

m_initiallyCheckedNodes protected_oe property

protected List m_initiallyCheckedNodes
Résultat List

m_initiallySelectedHvos protected_oe property

protected List m_initiallySelectedHvos
Résultat List