コード例 #1
0
        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);
        }
コード例 #2
0
 public UndoTaskVerticalMergeMultiple(UndoPosition position)
 {
     Position = position;
 }
コード例 #3
0
 public UndoTaskHorizontalMergeMultiple(UndoPosition position)
 {
     Position = position;
 }
コード例 #4
0
 public UndoTaskVerticalSplitMultiple(UndoPosition position)
 {
     Position = position;
 }
コード例 #5
0
 public UndoTaskHorizontalSplitMultiple(UndoPosition position)
 {
     Position = position;
 }
コード例 #6
0
 public UndoTaskClassifyFirstCycleMultiple(UndoPosition position)
 {
     Position = position;
 }
コード例 #7
0
 public UndoTaskApproveMultiple(UndoPosition position)
 {
     Position = position;
 }
コード例 #8
0
 public UndoTaskClassifyMultiple(UndoPosition position)
 {
     Position = position;
 }