SIL.FieldWorks.Common.Controls.IntChooserBEditControl.UpdateListItemToNewValue C# (CSharp) Method

UpdateListItemToNewValue() protected method

protected UpdateListItemToNewValue ( ISilDataAccess sda, int hvoItem, int newVal, int oldVal ) : void
sda ISilDataAccess
hvoItem int
newVal int
oldVal int
return void
		protected override void UpdateListItemToNewValue(ISilDataAccess sda, int hvoItem, int newVal, int oldVal)
		{
			int hvoOwningInt = hvoItem;
			if (m_ghostParentHelper != null)
			{
				// it's possible that hvoItem is actually the owner of a object that needs to be created
				// for hvoSel to be set.
				hvoOwningInt = m_ghostParentHelper.FindOrCreateOwnerOfTargetProp(hvoItem, m_flid);
			}
			SetBasicPropertyValue(sda, newVal, hvoOwningInt);
		}