private void AddCategoryNodeByTemplateNode(RadTreeNode parentNode, TemplateNode templateNode) { RadTreeNode categoryNode = CreateCategoryNode(parentNode, new NCategoryInfo() { CategoryName = templateNode.Name }); if (templateNode.HasChildren()) { foreach (TemplateNode templateChild in templateNode.Children) { AddCategoryNodeByTemplateNode(categoryNode, templateChild); } } }
public RadTreeNode FromBatchTemplate(BatchTemplateDef template, NBatchInfo batchInfo) { RadTreeNode batchNode = null; TemplateNode templateRoot = template.RootNode; if (templateRoot != null) { batchNode = CreateBatchNode(batchInfo); if (templateRoot.HasChildren()) { foreach (TemplateNode templateChild in templateRoot.Children) { AddCategoryNodeByTemplateNode(batchNode, templateChild); } } } return(batchNode); }