C# Класс SIL.FieldWorks.XWorks.PossibilityTreeBarHandler

makes a hierarchical tree of possibility items, *even if the record list is flattened*
Наследование: TreeBarHandler
Показать файл Открыть проект

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

Метод Описание
PopulateRecordBar ( SIL.FieldWorks.XWorks.RecordList list ) : void

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

Метод Описание
AddSubNodes ( ICmObject obj, TreeNodeCollection parentsCollection ) : void

add any subitems to the tree. Note! This assumes that the list has been preloaded (e.g., using PreLoadList), so it bypasses normal load operations for speed purposes. Withoug preloading, it took almost 19,000 queries to start FW showing semantic domain list. With preloading it reduced the number to 200 queries.

ShouldAddNode ( ICmObject obj ) : bool

this is overridden because we actually need to avoid adding items from the top-level if they are not top-level possibilities. They will show up under their respective parents.in other words, if the list we are given has been flattened, we need to un-flatten it.

UpdateHeaderVisibility ( ) : void

It's possible that another tree bar handler recently turned over control of the RecordBar to us, if so, we want to make sure they didn't leave the optional info bar visible.

tree_moveDown ( ) : void
tree_moveUp ( ) : void

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

Метод Описание
CreateTreebarContextMenuStrip ( ) : ContextMenuStrip
MoveItem ( int distance ) : void

Move the clicked item the specified distance (currently +/- 1) in its owning list.

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

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

add any subitems to the tree. Note! This assumes that the list has been preloaded (e.g., using PreLoadList), so it bypasses normal load operations for speed purposes. Withoug preloading, it took almost 19,000 queries to start FW showing semantic domain list. With preloading it reduced the number to 200 queries.
protected AddSubNodes ( ICmObject obj, TreeNodeCollection parentsCollection ) : void
obj ICmObject
parentsCollection System.Windows.Forms.TreeNodeCollection
Результат void

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

public PopulateRecordBar ( SIL.FieldWorks.XWorks.RecordList list ) : void
list SIL.FieldWorks.XWorks.RecordList
Результат void

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

this is overridden because we actually need to avoid adding items from the top-level if they are not top-level possibilities. They will show up under their respective parents.in other words, if the list we are given has been flattened, we need to un-flatten it.
protected ShouldAddNode ( ICmObject obj ) : bool
obj ICmObject
Результат bool

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

It's possible that another tree bar handler recently turned over control of the RecordBar to us, if so, we want to make sure they didn't leave the optional info bar visible.
protected UpdateHeaderVisibility ( ) : void
Результат void

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

protected tree_moveDown ( ) : void
Результат void

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

protected tree_moveUp ( ) : void
Результат void