Example #1
0
 /// <summary>
 /// Undoes the last action.
 /// </summary>
 private async Task UndoImpl()
 {
     await Dispatcher.UIThread.InvokeAsync(() =>
     {
         _undoRedoManager.Undo();
     });
 }
 public void InitiateExecution(params object[] obj)
 {
     if (CanBeExecutedOn(obj))
     {
         _history.Undo();
     }
 }
Example #3
0
 /// <summary>
 /// Metoda wywoływana w momencie odpalenia polecenia.
 /// </summary>
 protected override void OnExecute()
 {
     undoRedoManager.Undo();
 }