Example #1
0
 public void Notify(object obj, EventsClass args)
 {
     Console.WriteLine("\n\n                 VENDOR DETAILS\n");
     Console.WriteLine("Vendor Name  :   {0}", args.vendor.Name);
     Console.WriteLine("Place order to shipping address   :  {0}", args.customer.Address);
     Console.WriteLine("Order Placed Time  :   {0}", DateTime.Now);
     Console.WriteLine("_____________________________________________________________________________");
 }
Example #2
0
 public void Notify(object obj, EventsClass args)
 {
     Console.WriteLine("\n\n                 CUSTOMER DETAILS\n");
     Console.WriteLine("Hey! {0}", args.customer.UserName);
     Console.WriteLine("Order placed Time  :  {0}", DateTime.Now);
     Console.WriteLine("Shipping Address   :  {0}", args.customer.Address);
     Console.WriteLine("Shipping Date      :  {0}", DateTime.Now.Date.AddDays(3).Date.ToString("MM/dd/yyyy"));
 }