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

Summary description for LexReferenceMultiSlice.
Inheritance: Slice
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
DeleteFromReference ( ILexReference lr ) : void

This method is called when a user selects Delete Relation on a Lexical Relation slice. For: sequence relations (eg. Calendar) collection relations (eg. Synonym) tree relation (parts/whole when deleting a Whole slice)

DeleteReference ( ILexReference lr ) : void

This method is called when a user selects Delete Relation on a Lexical Relation slice. For: Pair relation (eg. Antonym) tree relation (parts/whole when deleting a Parts slice)

EditReferenceDetails ( ILexReference lr ) : void

This method is called when a user selects "Edit Reference Set Details" for a Lexical Relation slice.

Expand ( int iSlice ) : void

Expand this node, which is at position iSlice in its parent.

I (JH) don't know why this was written to take the index of the slice. It's just as easy for this class to find its own index.

FinishInit ( ) : void

Override method to add suitable control.

GenerateChildren ( XmlNode node, XmlNode caller, ICmObject obj, int indent, int &insPos, ArrayList path, ObjSeqHashMap reuseMap, bool fUsePersistentExpansion ) : void
HandleCreateMenuItem ( object sender, EventArgs ea ) : void
HandleMoreMenuItem ( object sender, EventArgs ea ) : void
HandleMouseDown ( Point p ) : bool
MakeSenseChooser ( SIL.FieldWorks.FDO.FdoCache cache, IHelpTopicProvider helpTopicProvider ) : SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser
OnHelp ( object sender, EventArgs args ) : void
OnShowFieldAlwaysVisible1 ( object sender, EventArgs args ) : void
OnShowFieldIfData1 ( object sender, EventArgs args ) : void
OnShowFieldNormallyHidden1 ( object sender, EventArgs args ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.

If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.

ExpandNewNode ( ) : void
UpdateDisplayIfNeeded ( int hvo, int tag ) : bool

Updates the display of a slice, if an hvo and tag it cares about has changed in some way.

Private Methods

Méthode Description
AddFinalContextMenuStripOptions ( ContextMenuStrip contextMenuStrip ) : void
DisposeContextMenu ( object sender, EventArgs e ) : void
GenerateChildNode ( int iChild, XmlNode node, XmlNode caller, int indent, int &insPos, ArrayList path, ObjSeqHashMap reuseMap ) : void
GetChildObject ( ILexRefType lrt ) : ICmObject

This method is called when we are creating a new lexical relation slice. If the user selects an item it's hvo is returned. Otherwise 0 is returned and the lexical relation should not be created.

GetRootObject ( ILexRefType lrt ) : ICmObject

This method is called when we are creating a new lexical relation slice. If the user selects an item it's hvo is returned. Otherwise 0 is returned and the lexical relation should not be created.

SetRefs ( ) : void
SetupContextMenuStrip ( ) : ContextMenuStrip
UpdateForDelete ( ILexReference lr ) : void
contextMenuStrip_Closed ( object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void

Method Details

DeleteFromReference() public méthode

This method is called when a user selects Delete Relation on a Lexical Relation slice. For: sequence relations (eg. Calendar) collection relations (eg. Synonym) tree relation (parts/whole when deleting a Whole slice)
public DeleteFromReference ( ILexReference lr ) : void
lr ILexReference
Résultat void

DeleteReference() public méthode

This method is called when a user selects Delete Relation on a Lexical Relation slice. For: Pair relation (eg. Antonym) tree relation (parts/whole when deleting a Parts slice)
public DeleteReference ( ILexReference lr ) : void
lr ILexReference
Résultat void

Dispose() protected méthode

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.
If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EditReferenceDetails() public méthode

This method is called when a user selects "Edit Reference Set Details" for a Lexical Relation slice.
public EditReferenceDetails ( ILexReference lr ) : void
lr ILexReference
Résultat void

Expand() public méthode

Expand this node, which is at position iSlice in its parent.
I (JH) don't know why this was written to take the index of the slice. It's just as easy for this class to find its own index.
public Expand ( int iSlice ) : void
iSlice int
Résultat void

ExpandNewNode() protected méthode

protected ExpandNewNode ( ) : void
Résultat void

FinishInit() public méthode

Override method to add suitable control.
public FinishInit ( ) : void
Résultat void

GenerateChildren() public méthode

public GenerateChildren ( XmlNode node, XmlNode caller, ICmObject obj, int indent, int &insPos, ArrayList path, ObjSeqHashMap reuseMap, bool fUsePersistentExpansion ) : void
node System.Xml.XmlNode
caller System.Xml.XmlNode
obj ICmObject
indent int
insPos int
path System.Collections.ArrayList
reuseMap SIL.FieldWorks.Common.Framework.DetailControls.ObjSeqHashMap
fUsePersistentExpansion bool
Résultat void

HandleCreateMenuItem() public méthode

public HandleCreateMenuItem ( object sender, EventArgs ea ) : void
sender object
ea System.EventArgs
Résultat void

HandleMoreMenuItem() public méthode

public HandleMoreMenuItem ( object sender, EventArgs ea ) : void
sender object
ea System.EventArgs
Résultat void

HandleMouseDown() public méthode

public HandleMouseDown ( Point p ) : bool
p Point
Résultat bool

MakeSenseChooser() public static méthode

public static MakeSenseChooser ( SIL.FieldWorks.FDO.FdoCache cache, IHelpTopicProvider helpTopicProvider ) : SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser
cache SIL.FieldWorks.FDO.FdoCache
helpTopicProvider IHelpTopicProvider
Résultat SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser

OnHelp() public méthode

public OnHelp ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Résultat void

OnShowFieldAlwaysVisible1() public méthode

public OnShowFieldAlwaysVisible1 ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Résultat void

OnShowFieldIfData1() public méthode

public OnShowFieldIfData1 ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Résultat void

OnShowFieldNormallyHidden1() public méthode

public OnShowFieldNormallyHidden1 ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Résultat void

UpdateDisplayIfNeeded() protected méthode

Updates the display of a slice, if an hvo and tag it cares about has changed in some way.
protected UpdateDisplayIfNeeded ( int hvo, int tag ) : bool
hvo int
tag int
Résultat bool