Esempio n. 1
0
 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);
         }
     }
 }
Esempio n. 2
0
 public virtual void SelectedListIndexChanged(object sender, SelectedListIndexChangedArgs e)
 {
     lock (this)
     {
         if (SelectedValueChangedEvent != null)
             SelectedValueChangedEvent(this, e);
     }
 }