SIL.FieldWorks.IText.ParaDataUpdateTracker.SetObjProp C# (CSharp) Méthode

SetObjProp() protected méthode

protected SetObjProp ( int hvo, int flid, int newObjValue ) : void
hvo int
flid int
newObjValue int
Résultat void
		protected override void SetObjProp(int hvo, int flid, int newObjValue)
		{
			int oldObjValue = Decorator.get_ObjectProp(hvo, flid);
			if (oldObjValue != newObjValue)
			{
				base.SetObjProp(hvo, flid, newObjValue);
				m_analysesWithNewGuesses.Add(hvo);
				MarkCurrentAnnotationAsChanged();
				return;
			}
			// If we find more than one occurrence of the same analysis, only the first time
			// will its guess change. But all of them need to be updated! So any occurrence whose
			// guess has changed needs to be marked as changed.
			if (m_currentAnnotation != null && m_currentAnnotation.Analysis !=null
				&& m_analysesWithNewGuesses.Contains(m_currentAnnotation.Analysis.Hvo))
			{
				MarkCurrentAnnotationAsChanged();
			}
		}