public bool GetStock(string barcode) { var stockView = new StockListModel(barcode, this.ConnectionString) { CalAct = this.ReCalculate }; if (null == stockView.Stock) { return(false); } this.StockList.Add(stockView); ReCalculate(); return(true); }
public void CancelStock(StockListModel model) { this.StockList.Remove(model); }