Esempio n. 1
0
        protected virtual void OnUpdatedTransactionStatus(StatusUpdatedEventArgs e)
        {
            var handler = UpdatedTransactionStatus;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 2
0
        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("----------------------------------------");
        }