public void Commit() { if (this.undoService == null) { throw new InvalidOperationException(); } this.undoService.Commit(); this.undoService = null; }
public void Rollback() { if (this.undoService == null) { throw new InvalidOperationException(); } this.undoService.Rollback(); this.undoService = null; }
public BatchAction(UndoServiceBase undoService, string name) { this.undoService = undoService; this.name = name; }