/* * Gets the number of stock available for a given item and date, then updates the * view to reflect the result. */ private void searchStockAvailable(ICatalogView view, SearchStockEventArgs e) { int res = _service.GetAvailableStock(e.date, e.itemId); _view.ShowStockAvailability(e, res); }