Ejemplo n.º 1
0
 public void Commit()
 {
     if (this.undoService == null)
     {
         throw new InvalidOperationException();
     }
     this.undoService.Commit();
     this.undoService = null;
 }
Ejemplo n.º 2
0
 public void Rollback()
 {
     if (this.undoService == null)
     {
         throw new InvalidOperationException();
     }
     this.undoService.Rollback();
     this.undoService = null;
 }
Ejemplo n.º 3
0
 public BatchAction(UndoServiceBase undoService, string name)
 {
     this.undoService = undoService;
     this.name        = name;
 }