Canguro.Model.Undo.ActionList.Undo C# (CSharp) Метод

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

Ejecuta Undo sobre todas las acciones registradas en orden inverso.
public Undo ( ) : void
Результат void
        public void Undo()
        {
            for (int i = actions.Count - 1; i >= 0; i--)
                actions[i].Undo();
        }

Usage Example

Пример #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;
     }
 }
All Usage Examples Of Canguro.Model.Undo.ActionList::Undo
ActionList