Пример #1
0
 /// <summary>
 /// Stop the current transaction, aborting it if <see cref="P:Northwoods.Go.GoTool.TransactionResult" /> is null.
 /// </summary>
 /// <returns></returns>
 /// <remarks>
 /// This is typically called in overrides of <see cref="M:Northwoods.Go.GoTool.Stop" />.
 /// If the <see cref="P:Northwoods.Go.GoTool.TransactionResult" /> is null, this calls <see cref="M:Northwoods.Go.GoView.AbortTransaction" />,
 /// otherwise this calls <see cref="M:Northwoods.Go.GoView.FinishTransaction(System.String)" />.
 /// </remarks>
 public bool StopTransaction()
 {
     if (TransactionResult == null)
     {
         return(View.AbortTransaction());
     }
     return(View.FinishTransaction(TransactionResult));
 }