private IEnumerable <AimTemplateTreeNode> FlattenNode(AimTemplateTreeNode node)
        {
            IEnumerable <AimTemplateTreeNode> childNodes = node.ChildNodes;
            var flattenedNodes = new List <AimTemplateTreeNode>();

            if (childNodes != null)
            {
                foreach (AimTemplateTreeNode childNode in childNodes)
                {
                    flattenedNodes.Add(childNode);
                    flattenedNodes.AddRange(FlattenNode(childNode));
                }
            }
            return(flattenedNodes);
        }
 private IEnumerable<AimTemplateTreeNode> FlattenNode(AimTemplateTreeNode node)
 {
     IEnumerable<AimTemplateTreeNode> childNodes = node.ChildNodes;
     var flattenedNodes = new List<AimTemplateTreeNode>();
     if (childNodes != null)
         foreach (AimTemplateTreeNode childNode in childNodes)
         {
             flattenedNodes.Add(childNode);
             flattenedNodes.AddRange(FlattenNode(childNode));
         }
     return flattenedNodes;
 }
 public NodeConfidenceWpfControl(AimTemplateTreeNode node)
 {
     Node = node;
     InitializeComponent();
 }