string NextIdsToString(Condition.Node node)
        {
            string res = "";

            res += _startGroup;
            if (node.TrueBranch.Edge != null)
            {
                res += node.TrueBranch.Edge.Descendant.ID.ToString();
            }
            else
            {
                res += "#";
            }
            res += _divider;
            if (node.FalseBranch.Edge != null)
            {
                res += node.FalseBranch.Edge.Descendant.ID.ToString();
            }
            else
            {
                res += "#";
            }
            res += _endGroup;
            return(res);
        }
        string ConditionNodeToString(Condition.Node node)
        {
            string res = ConditionsToString(node);

            res += NextIdsToString(node);
            return(res);
        }
        void CreateConditionNode(object sender, EventArgs e)
        {
            Condition.Node conditionNode = new Condition.Node();

            AddNode(conditionNode);
            SelectNode(conditionNode);
        }
 public void LoadConditionNodeForm(Condition.Node n)
 {
     propertyFormPlace.Children.Clear();
     Condition.Properties form = new Condition.Properties();
     form.LoadConditionNode(n);
     propertyFormPlace.Children.Add(form);
     _propertyForm = form;
 }
        string ConditionsToString(Condition.Node node)
        {
            string res = "";

            res += _startGroup;
            foreach (Condition.ExtractBox v in node.Conditions)
            {
                if (v.Variable != null && v.Variable.Name.Length > 0)
                {
                    res += VariableToText(v.Variable);
                }
            }
            res += _endGroup;

            return(res);
        }