예제 #1
0
 private void InitializeEntryNode(IEntryNode treeNode)
 {
     if (HasUnsupportedDirectives)
     {
         foreach (UnsupportedDirectiveEntry unsupportedDirectiveEntry in UnsupportedDirectives)
         {
             treeNode.AddChild(unsupportedDirectiveEntry.TreeNode);
         }
     }
     if (Rules.Count > 0)
     {
         IEntryNode entryNode = base.CreateEntryNode(this, "<" + RulesNodeName + ">");
         treeNode.AddChild(entryNode);
         foreach (RuleEntry ruleEntry in Rules)
         {
             entryNode.AddChild(ruleEntry.TreeNode);
         }
         entryNode.Expand();
     }
     treeNode.Expand();
 }
예제 #2
0
 void IEntryNode.AddChild(IEntryNode node)
 {
     base.Nodes.Add((EntryTreeNode)node);
 }