Esempio n. 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);
        }
Esempio n. 2
0
 public UndoTaskVerticalMergeMultiple(UndoPosition position)
 {
     Position = position;
 }
Esempio n. 3
0
 public UndoTaskHorizontalMergeMultiple(UndoPosition position)
 {
     Position = position;
 }
Esempio n. 4
0
 public UndoTaskVerticalSplitMultiple(UndoPosition position)
 {
     Position = position;
 }
Esempio n. 5
0
 public UndoTaskHorizontalSplitMultiple(UndoPosition position)
 {
     Position = position;
 }
Esempio n. 6
0
 public UndoTaskClassifyFirstCycleMultiple(UndoPosition position)
 {
     Position = position;
 }
Esempio n. 7
0
 public UndoTaskApproveMultiple(UndoPosition position)
 {
     Position = position;
 }
Esempio n. 8
0
 public UndoTaskClassifyMultiple(UndoPosition position)
 {
     Position = position;
 }