C# Class SIL.FieldWorks.XWorks.LexEd.MessageSlice

This slice supports showing the Chorus notes messages for a particular entry.
Inheritance: Slice
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode Description
FinishInit ( ) : void
ShowSliceForVisibleIfData ( XmlNode node, ICmObject obj ) : bool

Determine if the object really has data to be shown in the slice. This method is called by reflection from DataTree.AddSimpleNode, to determine whether to create the slice when visibility is "ifdata".

Private Methods

Méthode Description
DummyGetCurrentUrlForNewNotes ( object dataItemInFocus, string escapedId ) : string
GetAdditionalIdsForObject ( object targetOfNote ) : IEnumerable
GetAdditionalLexiconFilePaths ( SIL.FieldWorks.FDO.FdoCache cache ) : IEnumerable

Gets additional files that have annotation files containing notes about lexicon conflicts. Note that we return the files (e.g., Lexicon_04.lexdb) that contain the lexical data, not the files (e.g., Lexicon_04.lexdb.ChorusNotes) that contain the notes. We do check for the existence of the ChorusNotes files (though I think the NotesBar would handle their absence itself) just as a performance optimization.

GetCurrentUrlForNewNotes ( object dataItemInFocus, string escapedId ) : string
GetDataFilePath ( SIL.FieldWorks.FDO.FdoCache cache ) : string
GetIdForObject ( object targetOfNote ) : string

Method Details

FinishInit() public méthode

public FinishInit ( ) : void
Résultat void

ShowSliceForVisibleIfData() public static méthode

Determine if the object really has data to be shown in the slice. This method is called by reflection from DataTree.AddSimpleNode, to determine whether to create the slice when visibility is "ifdata".
public static ShowSliceForVisibleIfData ( XmlNode node, ICmObject obj ) : bool
node System.Xml.XmlNode
obj ICmObject object to check; should be an ILexEntry
Résultat bool