Exemple #1
0
        public static void CopyBlocksBeforeBlock(IEnumerable <Block> blocksToCopy, Block beforeChild)
        {
            IEnumerable <Block> newBlocks = BlockActions.Clone(blocksToCopy);

            beforeChild.PrependBlocks(newBlocks);
        }
Exemple #2
0
        public static void CopyBlocksAfterBlock(IEnumerable <Block> blocksToCopy, Block afterChild)
        {
            IEnumerable <Block> newBlocks = BlockActions.Clone(blocksToCopy);

            afterChild.AppendBlocks(newBlocks);
        }