예제 #1
0
 public void AddUndoBatch(List<UndoRedoAction> actions)
 {
     UndoRedoBatch batch = new UndoRedoBatch() { Actions = actions };
     UndoList.Add(batch);
     RedoList.Clear();
     parentBoard.ParentControl.UndoListChanged();
     parentBoard.ParentControl.RedoListChanged();
 }
예제 #2
0
        public void Redo()
        {
            UndoRedoBatch action = RedoList[RedoList.Count - 1];

            action.UndoRedo();
            action.SwitchActions();
            RedoList.RemoveAt(RedoList.Count - 1);
            UndoList.Add(action);
            parentBoard.ParentControl.UndoListChanged();
            parentBoard.ParentControl.RedoListChanged();
        }
예제 #3
0
        public void AddUndoBatch(List <UndoRedoAction> actions)
        {
            UndoRedoBatch batch = new UndoRedoBatch()
            {
                Actions = actions
            };

            UndoList.Add(batch);
            RedoList.Clear();
            parentBoard.ParentControl.UndoListChanged();
            parentBoard.ParentControl.RedoListChanged();
        }