private void OnPopUp_SelectionChanged(object sender, WComboSelChanged_EventArgs e) { this.Text = e.Text; m_SelectedItem = e.Item; OnSelectedIndexChanged(); }
/// <summary> /// Finds the first item after the given index which starts with the given string. The search is not case sensitive. /// </summary> /// <param name="s"></param> /// <param name="startIndex">The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.</param> /// <returns></returns> public int FindStringExact(string s, int startIndex) { if (startIndex == -1) { startIndex = 0; } for (int i = startIndex; i < this.Items.Count; i++) { WComboItem it = this.Items[i]; if (it.Text.ToLower() == s.ToLower()) { return(i); } } return(-1); }
public int Add(WComboItem item) { return(base.Add(item)); }
public int Add(WComboItem item) { return base.Add(item); }
private void OnPopUp_SelectionChanged(object sender,WComboSelChanged_EventArgs e) { this.Text = e.Text; m_SelectedItem = e.Item; OnSelectedIndexChanged(); }