private void List_SelectedIndexChanged(object sender, EventArgs e) { if (this.Mode != EntryMode.List) { SelectCurrentItem(); } else { if (SelectedListIndexChangeEvent != null) { SelectedListIndexChangedArgs args = new SelectedListIndexChangedArgs(); if (list.SelectedItem != null) { AutoCompleteEntry entry = list.SelectedItem as AutoCompleteEntry; args.SelectedListValue = entry.ItemValue; } SelectedListIndexChangeEvent(this, args); } } }
public virtual void SelectedListIndexChanged(object sender, SelectedListIndexChangedArgs e) { lock (this) { if (SelectedValueChangedEvent != null) SelectedValueChangedEvent(this, e); } }