Ejemplo n.º 1
0
 /// <summary>
 /// Attempts to edit specified StockItem in the StockItem collection.
 /// Throws an ArgumentException if the item can not be found.
 /// </summary>
 /// <param name="si">StockItem to be edited.</param>
 /// <param name="stockCode">New StockCode</param>
 /// <param name="supplier">New SupplierName</param>
 /// <param name="name">New Name</param>
 /// <param name="currentStock">New CurrentStock</param>
 /// <param name="reqStock">New RequiredStock</param>
 /// <param name="price">New Price</param>
 internal void EditStockItem(StockItem si, string stockCode, string supplier, string name, int currentStock, int reqStock, double price)
 {
     if (si != null)
     {
         si.EditStockItem(stockCode, name, supplier, price, reqStock, currentStock);
     }
     else
     {
         throw new ArgumentNullException("Stock item to edit not present.");
     }
 }