SIL.FieldWorks.Common.Controls.ReplaceWithMethod.Doit C# (CSharp) Method

Doit() public method

This is very like the base Doit, but we can save a duplicate pattern search by calling the BASE version of OkToChange rather than our own version, which tests for at least one match. We DO need to call the base version, e.g., so we don't change wordforms which shouldn't change because they are in use.
public Doit ( int hvo ) : void
hvo int
return void
		public override void Doit(int hvo)
		{
			if (!base.OkToChange(hvo))
				return;
			ITsString tss = NewValue(hvo);
			if (tss != null)
				SetNewValue(hvo, tss);
		}
	}