예제 #1
0
 public void Mail(object source, OrderPlacedEventArgs orderargs)
 {
     Console.WriteLine($"Email for your order {orderargs.OrderNo} , {orderargs.Item} , {orderargs.CustId}");
 }
예제 #2
0
 public void Message(object source, OrderPlacedEventArgs orderargs)
 {
     Console.WriteLine($"Msg : Your order {orderargs.OrderNo} for {orderargs.Item} by {orderargs.CustId} placed on {DateTime.Now}");
 }