private void GetProduct(string code)
 {
     try
     {
         product = ProductDB.GetProduct(code);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.GetType().ToString());
     }
 }
Пример #2
0
 private void GetProduct(string code)
 {
     try
     {
         // Add a statement here to call the GetProduct method of the ProductDB class.
         product = ProductDB.GetProduct(code);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.GetType().ToString());
     }
 }
Пример #3
0
        private void GetProduct(string productCode)
        {
            try
            {
                product = ProductDB.GetProduct(productCode);
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }