예제 #1
0
        public void AddCondition()
        {
            var child = new ExpressionConditionNode(Designer, this);

            Children.Add(child);
            m_disposeList.Add(child);
            Designer.UpdatePlacements();
        }
예제 #2
0
        public void AddFilter(QueryDesignTableFrame table, string col)
        {
            string colname = table.AliasOrName + "." + col;
            var    cond    = new ExpressionConditionNode(m_condDesign, m_condDesign.Root);

            cond.LeftExprData = colname;
            m_condDesign.Root.Children.Add(cond);
            m_condDesign.UpdatePlacements();
            tabControl1.SelectedIndex = 1;
        }
예제 #3
0
        public static ConditionNodeBase Load(ConditionDesigner designer, XmlElement xml, CompoudConditionNode parent)
        {
            string            type = xml.GetAttribute("type");
            ConditionNodeBase res  = null;

            switch (type)
            {
            case "expr":
                res = new ExpressionConditionNode(designer, parent);
                break;

            case "compoud":
                res = new CompoudConditionNode(designer, parent);
                break;
            }
            res.LoadFromXml(xml);
            return(res);
        }