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

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

Public Methods

Method 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

Method 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 method

public FinishInit ( ) : void
return void

ShowSliceForVisibleIfData() public static method

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
return bool