public void Do(IReversibleAction action) { action.Do(); done.Push(action); undone.Clear(); OnActionPerformed(action); }
private void OnActionReverted(IReversibleAction action) { if (ActionReverted != null) ActionReverted(action, new EventArgs()); }