C# Класс SIL.FieldWorks.FDO.DomainImpl.RnGenericRec

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CheckNotNull void
DateModifiedSideEffects void
FormatNumberOfParent ITsString
NoteSubrecordOfChanges void
RegisterAllSubrecordIndexTSSChanged void
SetDefaultValuesInConstruction void
SubrecordIndexTSS ITsString
TitleSideEffects void
ValidateConclusionsOA void
ValidateDescriptionOA void
ValidateDiscussionOA void
ValidateExternalMaterialsOA void
ValidateFurtherQuestionsOA void
ValidateHypothesisOA void
ValidatePersonalNotesOA void
ValidateResearchPlanOA void
ValidateVersionHistoryOA void

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

Метод Описание
MakeDefaultRoledParticipant ( ) : IRnRoledPartic

Make a default RoledParticipant. This is where we put participants unless the user chooses to divide them into roles. Many users just list participants and are not aware of the intervening RoledParticipant object.

ReferenceTargetOwner ( int flid ) : ICmObject

Gets the object which, for the indicated property of the recipient, the user is most likely to want to edit if the ReferenceTargetCandidates do not include the target he wants. The canonical example, supported by the default implementation of ReferenceTargetCandidates, is a possibility list, where the targets are the items. Subclasses which have reference properties edited by the simple list chooser should generally override either this or ReferenceTargetCandidates or both. The implementations of the two should naturally be consistent.

SubrecordOfKey ( bool sortedFromEnd ) : string

A sort key which sorts first by root record title, then by subrecord position. It achieves the sort we want for the SubrecordOf property. Note: called by reflection as a sortmethod for browse columns. Note that we don't support sorting this from the end; the parameter is currently required by the code in SortMethodFinder.CallSortMethod which invokes the sort method.

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

Метод Описание
AddObjectSideEffectsInternal ( AddObjectEventArgs e ) : void
RemoveObjectSideEffectsInternal ( RemoveObjectEventArgs e ) : void

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

Метод Описание
CheckNotNull ( IStText newObjValue ) : void
DateModifiedSideEffects ( System.DateTime originalValue, System.DateTime newValue ) : void
FormatNumberOfParent ( string pattern ) : ITsString
NoteSubrecordOfChanges ( RnGenericRec parent, int indexOfFirstChildToNote ) : void

Register a PropChanged for the SubrecordOf property of all your subrecords (after and including the one at indexOfFirstChildToNote) and their children

RegisterAllSubrecordIndexTSSChanged ( IFdoOwningSequence subs, int flid, ITsString dummy ) : void
SetDefaultValuesInConstruction ( ) : void

Initialize the DateCreated and DateModified values in the constructor.

SubrecordIndexTSS ( ITsStrBldr bldr ) : ITsString
TitleSideEffects ( ITsString originalValue, ITsString newValue ) : void
ValidateConclusionsOA ( IStText &newObjValue ) : void
ValidateDescriptionOA ( IStText &newObjValue ) : void
ValidateDiscussionOA ( IStText &newObjValue ) : void
ValidateExternalMaterialsOA ( IStText &newObjValue ) : void
ValidateFurtherQuestionsOA ( IStText &newObjValue ) : void
ValidateHypothesisOA ( IStText &newObjValue ) : void
ValidatePersonalNotesOA ( IStText &newObjValue ) : void
ValidateResearchPlanOA ( IStText &newObjValue ) : void
ValidateVersionHistoryOA ( IStText &newObjValue ) : void

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

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

protected AddObjectSideEffectsInternal ( AddObjectEventArgs e ) : void
e SIL.FieldWorks.FDO.Infrastructure.AddObjectEventArgs
Результат void

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

Make a default RoledParticipant. This is where we put participants unless the user chooses to divide them into roles. Many users just list participants and are not aware of the intervening RoledParticipant object.
public MakeDefaultRoledParticipant ( ) : IRnRoledPartic
Результат IRnRoledPartic

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

Gets the object which, for the indicated property of the recipient, the user is most likely to want to edit if the ReferenceTargetCandidates do not include the target he wants. The canonical example, supported by the default implementation of ReferenceTargetCandidates, is a possibility list, where the targets are the items. Subclasses which have reference properties edited by the simple list chooser should generally override either this or ReferenceTargetCandidates or both. The implementations of the two should naturally be consistent.
public ReferenceTargetOwner ( int flid ) : ICmObject
flid int
Результат ICmObject

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

protected RemoveObjectSideEffectsInternal ( RemoveObjectEventArgs e ) : void
e SIL.FieldWorks.FDO.Infrastructure.RemoveObjectEventArgs
Результат void

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

A sort key which sorts first by root record title, then by subrecord position. It achieves the sort we want for the SubrecordOf property. Note: called by reflection as a sortmethod for browse columns. Note that we don't support sorting this from the end; the parameter is currently required by the code in SortMethodFinder.CallSortMethod which invokes the sort method.
public SubrecordOfKey ( bool sortedFromEnd ) : string
sortedFromEnd bool
Результат string