SIL.FieldWorks.Common.Framework.DetailControls.AtomicReferencePOSSlice.PropChanged C# (CSharp) Méthode

PropChanged() public méthode

The dafault behavior is for change watchers to call DoEffectsOfPropChange if the data for the tag being watched has changed.
public PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void
hvo int The object that was changed
tag int The property of the object that was changed
ivMin int the starting character index where the change occurred
cvIns int the number of characters inserted
cvDel int the number of characters deleted
Résultat void
		public virtual void PropChanged(int hvo, int tag, int ivMin, int cvIns, int cvDel)
		{
			CheckDisposed();
			if (m_handlingMessage)
				return;

			if (hvo == m_obj.Hvo && tag == m_flid)
			{
				try
				{
					m_handlingMessage = true;
					var pos = POS;
					HvoTreeNode selNode = null;
					if (Tree.Tree != null)
						selNode = (Tree.Tree.SelectedNode as HvoTreeNode);
					if (selNode != null)
					{
						if (pos == null)
							Tree.Tree.SelectObj(0);
						else if (pos.Hvo != selNode.Hvo)
							Tree.Tree.SelectObj(pos.Hvo);
					}
				}
				finally
				{
					m_handlingMessage = false;
				}
			}
		}
		#endregion