public UndoPosition Undo() { var position = new UndoPosition(); UndoTask task = UndoTasks[Cursor]; if (task is UndoTaskClassifyMultiple) { position = DispatchUndoClassifyMultiple((UndoTaskClassifyMultiple)task); } else if (task is UndoTaskClassifyFirstCycleMultiple) { position = DispatchUndoClassifyFirstCycleMultiple((UndoTaskClassifyFirstCycleMultiple)task); } else if (task is UndoTaskHorizontalSplitMultiple) { position = DispatchUndoHorizontalSplitMultiple((UndoTaskHorizontalSplitMultiple)task); } else if (task is UndoTaskVerticalSplitMultiple) { position = DispatchUndoVerticalSplitMultiple((UndoTaskVerticalSplitMultiple)task); } else if (task is UndoTaskHorizontalMergeMultiple) { position = DispatchUndoHorizontalMergeMultiple((UndoTaskHorizontalMergeMultiple)task); } else if (task is UndoTaskVerticalMergeMultiple) { position = DispatchUndoVerticalMergeMultiple((UndoTaskVerticalMergeMultiple)task); } else if (task is UndoTaskApproveMultiple) { position = DispatchUndoApproveMultiple((UndoTaskApproveMultiple)task); } Cursor--; return(position); }
public UndoTaskVerticalMergeMultiple(UndoPosition position) { Position = position; }
public UndoTaskHorizontalMergeMultiple(UndoPosition position) { Position = position; }
public UndoTaskVerticalSplitMultiple(UndoPosition position) { Position = position; }
public UndoTaskHorizontalSplitMultiple(UndoPosition position) { Position = position; }
public UndoTaskClassifyFirstCycleMultiple(UndoPosition position) { Position = position; }
public UndoTaskApproveMultiple(UndoPosition position) { Position = position; }
public UndoTaskClassifyMultiple(UndoPosition position) { Position = position; }