public int ComboBoxAddItem(ImageComboBoxItem item) { item.Text = (item.Text.Length == 0)?item.GetType().Name + base.Items.Count.ToString():item.Text; base.Items.Add(item); return(base.Items.Count - 1); }
public int ComboBoxAddItem(ImageComboBoxItem item) { item.Text = (item.Text.Length == 0)?item.GetType ().Name+base.Items.Count.ToString ():item.Text; base.Items.Add (item); return base.Items.Count-1; }
public int ComboBoxInsertItem(int index, ImageComboBoxItem item) { item.Text = (item.Text.Length == 0)?item.GetType ().Name+index.ToString ():item.Text; base.Items.Insert(index, item); return index; }
public int ComboBoxInsertItem(int index, ImageComboBoxItem item) { item.Text = (item.Text.Length == 0)?item.GetType().Name + index.ToString():item.Text; base.Items.Insert(index, item); return(index); }