Beispiel #1
0
            public void PerformDo()
            {
                if (!IsCustomPreState)
                {
                    StateOnUndo = new TaeUndoRestorableGraphState(Graph, ItemsToCapture);
                }

                DoAction?.Invoke();
                StateOnRedo?.RestoreState();
            }
Beispiel #2
0
 public void PerformUndo()
 {
     StateOnRedo = new TaeUndoRestorableGraphState(Graph, ItemsToCapture);
     UndoAction?.Invoke();
     StateOnUndo?.RestoreState();
 }