C# Класс SIL.FieldWorks.XWorks.LexEd.LexReferenceMultiSlice

Summary description for LexReferenceMultiSlice.
Наследование: Slice
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
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.

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

Метод Описание
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

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

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

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
Результат void

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

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
Результат void

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

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
Результат void

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

This method is called when a user selects "Edit Reference Set Details" for a Lexical Relation slice.
public EditReferenceDetails ( ILexReference lr ) : void
lr ILexReference
Результат void

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

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
Результат void

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

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

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

Override method to add suitable control.
public FinishInit ( ) : void
Результат void

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

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
Результат void

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

public HandleCreateMenuItem ( object sender, EventArgs ea ) : void
sender object
ea System.EventArgs
Результат void

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

public HandleMoreMenuItem ( object sender, EventArgs ea ) : void
sender object
ea System.EventArgs
Результат void

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

public HandleMouseDown ( Point p ) : bool
p Point
Результат bool

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

public static MakeSenseChooser ( SIL.FieldWorks.FDO.FdoCache cache, IHelpTopicProvider helpTopicProvider ) : SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser
cache SIL.FieldWorks.FDO.FdoCache
helpTopicProvider IHelpTopicProvider
Результат SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser

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

public OnHelp ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Результат void

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

public OnShowFieldAlwaysVisible1 ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Результат void

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

public OnShowFieldIfData1 ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Результат void

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

public OnShowFieldNormallyHidden1 ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Результат void

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

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
Результат bool