protected virtual void OnUpdatedTransactionStatus(StatusUpdatedEventArgs e) { var handler = UpdatedTransactionStatus; if (handler != null) { handler(this, e); } }
private static void OnUpdatedTransactionStatus(object sender, StatusUpdatedEventArgs eventArgs) { var transaction = eventArgs.Transaction; Console.WriteLine(""); Console.WriteLine("*** Updated transaction status ***"); Console.WriteLine("----------------------------------------"); Console.WriteLine(" Transaction ID: {0}", transaction.TransactionId); Console.WriteLine("Previous status: {0}", eventArgs.PreviousStatus); Console.WriteLine(" New status: {0}", transaction.Status); Console.WriteLine("----------------------------------------"); }