public UpdateWordsToolDisplay ( int curDisplayedWfId, bool updateUserCount, bool updateUserStatusIcon, bool updateParserCount, bool updateParserStatusIcon ) : void | ||
curDisplayedWfId | int | |
updateUserCount | bool | |
updateUserStatusIcon | bool | |
updateParserCount | bool | |
updateParserStatusIcon | bool | |
리턴 | void |
public void UpdateWordsToolDisplay(
int curDisplayedWfId,
bool updateUserCount, bool updateUserStatusIcon,
bool updateParserCount, bool updateParserStatusIcon)
{
CheckDisposed();
// JohnT: hopefully we have code in FDO or in various decorators to update stuff as much as we choose,
// based on side effect and PropChanged handlers.
// Perfect updating is probably too expensive.
// Nothing useful we can currently do here, anyway.
}
/// ------------------------------------------------------------------------------------
public bool OnClearSelectedWordParserAnalyses(object argument) { WfiWordform wf = CurrentWordform; if (wf == null) { MessageBox.Show(ParserUIStrings.ksSelectWordFirst); } else { if (CurrentWordformHvo > 0) { using (WfiWordformUi wfui = new WfiWordformUi(WfiWordform.CreateFromDBObject(m_cache, CurrentWordformHvo))) { if (m_cache.DatabaseAccessor.IsTransactionOpen()) m_cache.DatabaseAccessor.CommitTrans(); m_cache.DatabaseAccessor.BeginTrans(); DbOps.ExecuteStoredProc( m_cache, string.Format("EXEC RemoveParserApprovedAnalyses$ {0}", CurrentWordformHvo), null); m_cache.DatabaseAccessor.CommitTrans(); wfui.UpdateWordsToolDisplay(CurrentWordformHvo, false, false, true, true); } } } return true; //we handled this. }