Пример #1
0
 /// <summary>
 /// Reduces the product stock if sufficient
 /// </summary>
 /// <param name="ProductID"></param>
 /// <param name="Quantity"></param>
 private void PurchaseProduct(int ProductID, int Quantity)
 {
     try {
         //reset the business object
         _store = new Transaction.Store().PurchaseItem(_store, ProductID, Quantity);
     } catch (Exception e) {
         WidgetError.DisplayError(e.Message);
     }
 }
Пример #2
0
 /// <summary>
 /// lists the available stores
 /// </summary>
 public void DisplayStoreList()
 {
     try
     {
         //get the business object that is being interacted with
         _store = Transaction.Store.DisplayStoreList();
     }
     catch (Exception e)
     {
         WidgetError.DisplayError(e.Message);
     }
 }