C# 클래스 SIL.FieldWorks.XWorks.PossibilityTreeBarHandler

makes a hierarchical tree of possibility items, *even if the record list is flattened*
상속: TreeBarHandler
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
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