SIL.FieldWorks.FdoUi.WfiWordformUi.UpdateWordsToolDisplay C# (CSharp) Method

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
		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.

		}
		/// ------------------------------------------------------------------------------------

Usage Example

Ejemplo n.º 1
0
		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.
		}
All Usage Examples Of SIL.FieldWorks.FdoUi.WfiWordformUi::UpdateWordsToolDisplay