// STEP 8 // ****************************************** // * GET PRODUCT BUTTON * // ****************************************** private void btnGetProd_Click(object sender, EventArgs e) { List <Product> products = ProductDB.GetProducts(); txtProductName.Text = products[Convert.ToInt32(comboProdId.SelectedIndex)].ProdName; }
// STEP 2 public void GetProduct(int productId) { Product products = ProductDB.GetProduct(productId); }