CLScriptTestor.Form1.ShowExpNode C# (CSharp) Method

ShowExpNode() public method

public ShowExpNode ( TreeNode node, CSLE value ) : void
node TreeNode
value CSLE
return void
        void ShowExpNode(TreeNode node, CSLE.ICLS_Expression value)
        {
            if (value == null)
            {
                node.Text = "null";

            }
            else
            {
                node.Text = value.ToString();
                CSLE.ICLS_Expression exp = value as CSLE.ICLS_Expression;
                if (exp != null && exp.listParam != null)
                    foreach (var v in exp.listParam)
                    {
                        TreeNode subnode = new TreeNode();
                        ShowExpNode(subnode, v);
                        node.Nodes.Add(subnode);
                    }
            }
        }