public void Parse(string query, DBTable table) { QQuery q = new QQuery("", table); q.ParseExpression(this, query); //Regex exp = new Regex(@"\*|\+|\-|\/", RegexOptions.IgnoreCase); //string q = exp.Replace(query, ch => @" " + ch.Value + " "); //string[] split = q.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); //if (split.Length >= 3) //{ // switch (split[1]) // { // case "+": type = QMathType.Plus; break; // case "-": type = QMathType.Minus; break; // case "*": type = QMathType.Multiply; break; // case "/": type = QMathType.Devide; break; // } // Items.Add(split[0]); // if (split.Length > 3) // { // QExpression sub = new QExpression(); // sub.Parse(split[2], table); // Items.Add(sub); // } // else // Items.Add(split[2]); //} }