C# Class SIL.FieldWorks.FdoUi.Dialogs.RelatedWords

Summary description for RelatedWords.
Inheritance: System.Windows.Forms.Form, IFWDisposable
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode Description
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

MakeSummaryView ( int hvoEntry, SIL.FieldWorks.FDO.FdoCache cache, IVwStylesheet styleSheet, XCore.Mediator mediator ) : SIL.FieldWorks.Common.Controls.XmlView

Create a view with a single LexEntry object.

RelatedWords ( SIL.FieldWorks.FDO.FdoCache cache, IVwSelection sel, int hvoEntry, int domains, int lexrels, IVwCacheDa cdaTemp, IVwStylesheet styleSheet, XCore.Mediator mediator, bool hideInsertButton ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
GetSelWord ( ) : LexEntryUi
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadDomainAndRelationInfo ( SIL.FieldWorks.FDO.FdoCache cache, int hvoEntry, int &domainsOut, int &lexrelsOut, IVwCacheDa &cdaTemp, IWin32Window owner ) : bool

Load both the semantic domains and the lexical relation information for hvoEntry. Returns false (after displaying a dialog) if the entry has no associated domains or lexical relations, or none of them are linked to any other entries.

LoadDomainInfo ( SIL.FieldWorks.FDO.FdoCache cache, int hvoEntry, int &hvoSemanticDomainsOut, IVwCacheDa &cdaTemp ) : bool

Load the information about the domains of hvoEntry. Returns false if the entry has no associated domains or none of them are linked to any other entries.

LoadLexicalRelationInfo ( SIL.FieldWorks.FDO.FdoCache cache, int hvoEntry, int &relsOut, IVwCacheDa cdaTemp ) : bool

Load the information about the lexical relations that link to hvoEntry. Specifically, we want LexReferences that refer to the target Entry (hvoEntry) and also some other lexical entry. For each such thing, we store in cdaTemp the name (or, if appropriate, the reverse name) of the relationship that hvoEntry has to the other entry(s) in the lex reference, as property RelatedWordsVc.ktagName of the LexReference Hvo. Return through relsOut the list of LexReferences that are thus related to hvoEntry. Return true if there are any.

SetupDomainsForEntry ( int semanticDomainHvos ) : void

Set up the referring semantic domains for the domains found of an entry

SetupForEntry ( int domains, int lexrels ) : void

Store data in m_cdaTemp suitable for displaying words related to m_hvoEntry

SetupLexRelsForEntry ( int lexicalRelationHvos ) : void

Set up the referring lexical entries of an entry

ShowNotInDictMessage ( IWin32Window owner ) : void

Shows the "not in dictionary" message.

m_btnCopy_Click ( object sender, System e ) : void
m_btnInsert_Click ( object sender, System e ) : void
m_btnLookup_Click ( object sender, System e ) : void
m_view_SelChanged ( object sender, EventArgs e ) : void

Method Details

CheckDisposed() public méthode

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

MakeSummaryView() public static méthode

Create a view with a single LexEntry object.
public static MakeSummaryView ( int hvoEntry, SIL.FieldWorks.FDO.FdoCache cache, IVwStylesheet styleSheet, XCore.Mediator mediator ) : SIL.FieldWorks.Common.Controls.XmlView
hvoEntry int
cache SIL.FieldWorks.FDO.FdoCache
styleSheet IVwStylesheet
mediator XCore.Mediator
Résultat SIL.FieldWorks.Common.Controls.XmlView

RelatedWords() public méthode

public RelatedWords ( SIL.FieldWorks.FDO.FdoCache cache, IVwSelection sel, int hvoEntry, int domains, int lexrels, IVwCacheDa cdaTemp, IVwStylesheet styleSheet, XCore.Mediator mediator, bool hideInsertButton ) : System
cache SIL.FieldWorks.FDO.FdoCache
sel IVwSelection
hvoEntry int
domains int
lexrels int
cdaTemp IVwCacheDa
styleSheet IVwStylesheet
mediator XCore.Mediator
hideInsertButton bool
Résultat System