private TreeNode CreateUserDefinedFunctionNode(UserDefinedFunction userDefinedFunction) { TreeNode node = CreateTreeNode(userDefinedFunction.Name, "function", procedureContextMenu); node.Nodes.Add(String.Empty); TreeNodeController controller = new TreeNodeController(); controller.Populate += delegate { AddParameters(node, userDefinedFunction); }; controller.Refresh += delegate { userDefinedFunction.RefreshParameters(); }; controller.Tag = userDefinedFunction; node.Tag = controller; return(node); }