Пример #1
0
 public void Pay(object provider, PaymentEventArgs payment)
 {
     Console.WriteLine("Payment method: " + payment.Name);
     Console.WriteLine();
     Console.WriteLine("Total amount: " + payment.TotalAmount);
     Console.WriteLine();
     Console.WriteLine(payment.Info);
 }
Пример #2
0
        public void Paying(Payment provider, string info, string totalAmount)
        {
            PaymentEventArgs payment = new PaymentEventArgs(provider.Name, info, totalAmount);

            if (PaymentProcessing != null)
            {
                PaymentProcessing(this, payment);
            }
        }