Ejemplo n.º 1
0
 public void TokenCallback(ParadoxParser parser, string token)
 {
     try
     {
         if (token.StartsWith("b_"))
         {
             LandedTitle l = new LandedTitle();
             l.Name   = token;
             l.parent = this;
             this.Children.Add(l);
         }
     }
     catch (Exception ex)
     {
         //throw ex;
         return;
     }
 }
Ejemplo n.º 2
0
 private void MakeTree(LandedTitle landedTitle, TreeNode node)
 {
     foreach (var i in landedTitle.Children)
     {
         MakeTree(i, node.Nodes.Add(i.Name));
         if (i.Name.StartsWith("k_"))
         {
             k_count++;
         }
         if (i.Name.StartsWith("d_"))
         {
             d_count++;
         }
         if (i.Name.StartsWith("c_"))
         {
             c_count++;
         }
         if (i.Name.StartsWith("b_"))
         {
             b_count++;
         }
     }
 }