Example #1
0
        private void GetProductQuantityButton_Click(object sender, EventArgs e)
        {
            SqlProductRepository products = new SqlProductRepository(connectionString);

            try
            {
                productList = products.FetchProductQuantity(Convert.ToInt32(TypeIDTextbox.Text));
            }catch (Exception ex)
            {
                MessageBox.Show("Incorrect input. Parameter takes an integer.");
            }
        }