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

Helper for handling switching between related (ListItemClass) lists.
Наследование: SIL.Utils.FwDisposableBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
FindTreeRelationship RelationshipOfRelatives
GetDescendents Set
GetGhostParentHelper GhostParentHelper
GetHvoCommonAncestor int
GetTreeNode System.Xml.XmlNode
PartOwnershipTree System

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

Метод Описание
Create ( SIL.FieldWorks.FDO.FdoCache cache, IMultiListSortItemProvider sortItemProvider, bool fReturnFirstDecendentOnly ) : PartOwnershipTree

Factory for returning a PartOwnershipTree

FindCorrespondingItemsInCurrentList ( int flidForItemsBeforeListChange, Set itemsBeforeListChange, int flidForCurrentList, Set &commonAncestors ) : Set

Map itemsBeforeListChange (associated with flidForItemsBeforeListChange) to those in the current list (associated with flidForCurrentList) and provide a set of common ancestors.

GetSourceFieldName ( int targetClsId, int targetFieldId ) : string

Get the field name that should be used for the main record list when we want to edit the specified field of the specified object class. TargetFieldId may be 0 to get the default (or only) main record list field for the specified class.

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

Метод Описание
DisposeUnmanagedResources ( ) : void

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

Метод Описание
FindTreeRelationship ( int prevListItemsClass, int newListItemsClass ) : RelationshipOfRelatives
GetDescendents ( int hvoCommonAncestor, int relativesFlid ) : Set
GetGhostParentHelper ( int flidToTry ) : GhostParentHelper
GetHvoCommonAncestor ( int hvoBeforeListChange, int prevListItemsClass, int newListItemsClass ) : int
GetTreeNode ( int classId ) : XmlNode
PartOwnershipTree ( SIL.FieldWorks.FDO.FdoCache cache, IMultiListSortItemProvider sortItemProvider, bool fReturnFirstDecendentOnly ) : System

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

Create() статический публичный Метод

Factory for returning a PartOwnershipTree
static public Create ( SIL.FieldWorks.FDO.FdoCache cache, IMultiListSortItemProvider sortItemProvider, bool fReturnFirstDecendentOnly ) : PartOwnershipTree
cache SIL.FieldWorks.FDO.FdoCache
sortItemProvider IMultiListSortItemProvider
fReturnFirstDecendentOnly bool
Результат PartOwnershipTree

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

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

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

Map itemsBeforeListChange (associated with flidForItemsBeforeListChange) to those in the current list (associated with flidForCurrentList) and provide a set of common ancestors.
public FindCorrespondingItemsInCurrentList ( int flidForItemsBeforeListChange, Set itemsBeforeListChange, int flidForCurrentList, Set &commonAncestors ) : Set
flidForItemsBeforeListChange int
itemsBeforeListChange Set
flidForCurrentList int
commonAncestors Set
Результат Set

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

Get the field name that should be used for the main record list when we want to edit the specified field of the specified object class. TargetFieldId may be 0 to get the default (or only) main record list field for the specified class.
public GetSourceFieldName ( int targetClsId, int targetFieldId ) : string
targetClsId int
targetFieldId int
Результат string