Exemplo n.º 1
0
        private void OnPopUp_SelectionChanged(object sender, WComboSelChanged_EventArgs e)
        {
            this.Text      = e.Text;
            m_SelectedItem = e.Item;

            OnSelectedIndexChanged();
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 public int Add(WComboItem item)
 {
     return(base.Add(item));
 }
Exemplo n.º 4
0
		public int Add(WComboItem item)
		{
			return base.Add(item);
		}
Exemplo n.º 5
0
		private void OnPopUp_SelectionChanged(object sender,WComboSelChanged_EventArgs e)
		{
			this.Text = e.Text;
			m_SelectedItem = e.Item;

			OnSelectedIndexChanged();
		}