Undo() публичный Метод

Ejecuta Undo sobre todas las acciones registradas en orden inverso.
public Undo ( ) : void
Результат void
Пример #1
0
 /// <summary>
 /// Deshace la última acción.
 /// </summary>
 public void Undo()
 {
     if (undoPtr != null)
     {
         model.Modified = true;
         undoing        = true;
         Rollback();
         currentAction = undoPtr.Value;
         currentAction.Undo();
         undoPtr       = undoPtr.Previous;
         currentAction = new ActionList();
         undoing       = false;
     }
 }
Пример #2
0
 /// <summary>
 /// Deshace la acción actual
 /// </summary>
 public void Rollback()
 {
     currentAction.Undo();
     currentAction = new ActionList();
 }