/// <summary> /// Adds a NAnt build target to the tree. /// </summary> /// <param name="node">The parent tree node.</param> /// <param name="target">The NAnt build target.</param> void AddTarget(TreeNode node, NAntBuildTarget target) { NAntBuildTargetTreeNode targetNode = new NAntBuildTargetTreeNode(target); node.Nodes.Add(targetNode); }