コード例 #1
0
 public static bool billingService_BillingSuccessfullHandler(object sender, OrderEventsArgs e)
 {
     // initiate shipping
     var shipmentService = new ShipmentService();
     shipmentService.ShipOrder(e.Order);
     return true;
 }
コード例 #2
0
 /// <summary>
 /// Raises Order created event. 
 /// make sure its protected virtual so that its overridable. 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnOrderCreated(object sender, OrderEventsArgs e)
 {
     if (OrderCreated != null)
     {
         // invoke the event
         OrderCreated(this,e);
     }
 }
コード例 #3
0
 public void OnOrderCreated(object sender, OrderEventsArgs e)
 {
     CreateInvoice(e.Order);
 }
コード例 #4
0
 public bool billingService_BillingSuccessfullHandler(object sender, OrderEventsArgs e)
 {
     // initiate shipping
     ShipOrder(e.Order);
     return true;
 }