ToTree() public method

Converts the condition into a viewable TreeNode for the Criteria Editor
public ToTree ( ) : TreeNode
return System.Windows.Forms.TreeNode
Example #1
0
        /// <summary>
        /// Adds a new criteria to an award from the Add Critera Dialog
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddNewCriteria(object sender, FormClosingEventArgs e)
        {
            Condition Add = Child.GetCondition();

            if (Add != null)
            {
                ConditionTree.Nodes[0].Nodes.Add(Add.ToTree());
                UpdateRoot();
            }
        }