Пример #1
0
		protected void RaiseTransactionFailed(ITransaction transaction, TransactionException exception)
		{
			TransactionErrorDelegate eventDelegate = (TransactionErrorDelegate)events[TransactionFailedEvent];
			
			if (eventDelegate != null)
			{
				eventDelegate(transaction, exception);
			}
		}
 //these invokers below are there to remove teh "Warning as Error" message. If you have a better way of removing this message, go for it.
 private void InvokeTransactionFailed(ITransaction transaction, TransactionException transactionError)
 {
     TransactionErrorDelegate Delegate = TransactionFailed;
 }