Exemple #1
0
        // 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;
        }
Exemple #2
0
 // STEP 2
 public void GetProduct(int productId)
 {
     Product products = ProductDB.GetProduct(productId);
 }