public ReconcileStock(int _id) { InitializeComponent(); id = _id; sl = new StockList(id); s = sl.ViewAStock(sl[0].StockID); }
public viewStock(int _id) { InitializeComponent(); id = _id; sl = new StockList(id); s = sl.ViewAStock(sl[0].StockID); txtBrand.Text = s.Brand; txtProduct.Text = s.Product; txtPrice.Text = Convert.ToString(s.Price); txtSize.Text = Convert.ToString(s.Size); txtQuantity.Text = Convert.ToString(s.Quantity); txtBarcode.Text = s.Barcode; txtSupplier.Text = Convert.ToString(s.SupplierID); }