SIL.FieldWorks.Common.Widgets.FwComboBox.PropChanged C# (CSharp) Method

PropChanged() public method

public PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void
hvo int
tag int
ivMin int
cvIns int
cvDel int
return void
		public override void PropChanged(int hvo, int tag, int ivMin, int cvIns, int cvDel)
		{
			CheckDisposed();

			// Currently the only property that can change is the string,
			// but verify it in case we later make a mechanism to work with a shared
			// cache. If it is the right property, report TextChanged.
			if (tag != InnerFwTextBox.ktagText)
				return;
			ListBox.IgnoreSelectedIndexChange = true;
			try
			{
				ListBox.SelectedIndex = ListBox.FindIndexOfTss(m_comboTextBox.Tss);
			}
			finally
			{
				ListBox.IgnoreSelectedIndexChange = false;
			}

			base.PropChanged(hvo, tag, ivMin, cvIns, cvDel);
		}