protected override void PopTransaction(bool commit)
 {
     if (this.undoService != null)
     {
         IUndoTransaction undoTransaction = this.transactions.Pop();
         if (commit)
         {
             undoTransaction.Commit();
         }
         else
         {
             undoTransaction.Cancel();
         }
     }
     else
     {
         base.PopTransaction(commit);
     }
 }
Exemple #2
0
 public void Cancel1()
 {
     Create(haveRealTransaction: false);
     _transaction.Cancel();
 }