C# Class SIL.FieldWorks.FdoUi.WfiWordformUi

WfiWordformUi provides UI-specific methods for the WfiWordformUi class.
Inheritance: CmObjectUi
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
CanDelete ( string &cannotDeleteMsg ) : bool
UpdateWordsToolDisplay ( int curDisplayedWfId, bool updateUserCount, bool updateUserStatusIcon, bool updateParserCount, bool updateParserStatusIcon ) : void

This will recache some information related to a wordform and its analyses, and call PropChanged to get the display to refresh.

It makes no sense to call this method if the active area isn't the Words area, and the tool isn't Analyses.

WfiWordformUi ( ICmObject obj ) : System.Diagnostics

Create one. Argument must be a WfiWordform. Note that declaring it to be forces us to just do a cast in every case of MakeUi, which is passed an obj anyway.

Protected Methods

Method Description
IsAcceptableContextToJump ( string toolCurrent, string toolTarget ) : bool
OnFindInDictionary ( object args ) : bool

This method implements the FindInDictionary menu item. It is called using reflection by xCore, not directly.

Private Methods

Method Description
WfiWordformUi ( ) : System.Diagnostics

Method Details

CanDelete() public method

public CanDelete ( string &cannotDeleteMsg ) : bool
cannotDeleteMsg string
return bool

IsAcceptableContextToJump() protected method

protected IsAcceptableContextToJump ( string toolCurrent, string toolTarget ) : bool
toolCurrent string
toolTarget string
return bool

OnFindInDictionary() protected method

This method implements the FindInDictionary menu item. It is called using reflection by xCore, not directly.
protected OnFindInDictionary ( object args ) : bool
args object
return bool

UpdateWordsToolDisplay() public method

This will recache some information related to a wordform and its analyses, and call PropChanged to get the display to refresh.
It makes no sense to call this method if the active area isn't the Words area, and the tool isn't Analyses.
public UpdateWordsToolDisplay ( int curDisplayedWfId, bool updateUserCount, bool updateUserStatusIcon, bool updateParserCount, bool updateParserStatusIcon ) : void
curDisplayedWfId int
updateUserCount bool
updateUserStatusIcon bool
updateParserCount bool
updateParserStatusIcon bool
return void

WfiWordformUi() public method

Create one. Argument must be a WfiWordform. Note that declaring it to be forces us to just do a cast in every case of MakeUi, which is passed an obj anyway.
public WfiWordformUi ( ICmObject obj ) : System.Diagnostics
obj ICmObject
return System.Diagnostics