Пример #1
0
        public static ReplaceBlocksAction ReplaceBlock(
            Block toReplace,
            IEnumerable <Block> toInsert)
        {
            ReplaceBlocksAction action = new ReplaceBlocksAction(toReplace);

            action.PrepareBlockToRemove(toReplace);
            action.PrepareBlockToAdd(toInsert);
            return(action);
        }
Пример #2
0
        public static ReplaceBlocksAction ReplaceBlock(
            Block toReplace,
            Block replaceWith)
        {
            ReplaceBlocksAction action = new ReplaceBlocksAction(toReplace);

            action.PrepareBlockToRemove(toReplace);
            action.PrepareBlockToAdd(replaceWith);
            return(action);
        }
Пример #3
0
        public static ReplaceBlocksAction ReplaceBlock(
			Block toReplace,
			IEnumerable<Block> toInsert)
        {
            ReplaceBlocksAction action = new ReplaceBlocksAction(toReplace);
            action.PrepareBlockToRemove(toReplace);
            action.PrepareBlockToAdd(toInsert);
            return action;
        }
Пример #4
0
        public static ReplaceBlocksAction ReplaceBlock(
			Block toReplace,
			Block replaceWith)
        {
            ReplaceBlocksAction action = new ReplaceBlocksAction(toReplace);
            action.PrepareBlockToRemove(toReplace);
            action.PrepareBlockToAdd(replaceWith);
            return action;
        }