Ejemplo n.º 1
0
        int findListIdx(ComboBox cbCtrl, string find)
        {
            int rez = -1;
            int cou = -1;

            if (find == "")
            {
                find = "join";
            }

            foreach (string s in cbCtrl.Items)
            {
                cou++;
                if (QueryParser.ContainsExpr(s.ToLower(), find))
                {
                    rez = cou;
                    break;
                }
            }

            return(rez);
        }