Пример #1
0
        void _itemContainer_OnSelectedItemChanged(ShengComboSelectorItem item)
        {
            this.Invalidate();

            //Application.DoEvents();

            if (this.OnSelectedValueChanged != null)
            {
                if (item != null)
                {
                    OnSelectedValueChanged(item.Value);
                }
                else
                {
                    OnSelectedValueChanged(null);
                }
            }
        }
Пример #2
0
 public virtual void Remove(ShengComboSelectorItem value)
 {
     List.Remove(value);
 }
Пример #3
0
 public void Insert(int index, ShengComboSelectorItem value)
 {
     List.Insert(index, value);
 }
Пример #4
0
 public int IndexOf(ShengComboSelectorItem value)
 {
     return(List.IndexOf(value));
 }
Пример #5
0
 public bool Contains(ShengComboSelectorItem value)
 {
     return(List.Contains(value));
 }
Пример #6
0
 public virtual int Add(ShengComboSelectorItem value)
 {
     return(List.Add(value));
 }
Пример #7
0
 void _itemContainer_OnItemClick(ShengComboSelectorItem item)
 {
     _popup.Close();
 }
Пример #8
0
 private void AddItem(ShengComboSelectorItem item)
 {
     item.ItemContainer = this;
     this._items.Add(item);
 }