public void Rollback(object sender) { if (Executed.Count != 0) { IAction action = Executed.Pop(); action.Rollback(sender); Rollbacked.Push(action); OnRollback(this, new EventArgs()); } }