Beispiel #1
0
 public void MergeByChildBlocks(Language Target)
 {
     BlockType[] blocks = this.Blocks;
     foreach (BlockType bt in blocks)
     {
         for (int i = Target.MainBlock.ChildBlocks.Count - 1; i >= 0; i--)
         {
             BlockType child = Target.MainBlock.ChildBlocks[i];
             bt.ChildBlocks.Insert(0, child);
         }
     }
 }
Beispiel #2
0
 public void MergeByMainBlock(Language Target)
 {
     BlockType[] blocks = this.Blocks;
     foreach (BlockType bt in blocks)
     {
         bt.ChildBlocks.Insert(0, Target.MainBlock);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Default BlockType constructor
 /// </summary>
 public BlockType(Language parent)
     : this()
 {
     this.Parent = parent;
     this.Parent.ChangeVersion();
 }