コード例 #1
0
        private void OnPopUp_SelectionChanged(object sender, WComboSelChanged_EventArgs e)
        {
            this.Text      = e.Text;
            m_SelectedItem = e.Item;

            OnSelectedIndexChanged();
        }
コード例 #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);
        }
コード例 #3
0
ファイル: WComboItem.cs プロジェクト: huguitosilva1/gisa
 public int Add(WComboItem item)
 {
     return(base.Add(item));
 }
コード例 #4
0
ファイル: WComboItem.cs プロジェクト: aureliopires/gisa
		public int Add(WComboItem item)
		{
			return base.Add(item);
		}
コード例 #5
0
ファイル: WComboBox.cs プロジェクト: aureliopires/gisa
		private void OnPopUp_SelectionChanged(object sender,WComboSelChanged_EventArgs e)
		{
			this.Text = e.Text;
			m_SelectedItem = e.Item;

			OnSelectedIndexChanged();
		}