public static void MoveBlock(ContainerBlock newParent, Block blockToMove) { using (newParent.Transaction()) { blockToMove.Delete(); newParent.AppendBlocks(blockToMove); } }
public static void MoveBlocks(ContainerBlock newParent, IEnumerable <Block> blocksToMove) { using (newParent.Transaction()) { Delete(blocksToMove); newParent.Add(blocksToMove); } }