private void GetProduct(string code)
 {
     try
     {
         product = ProductDB.GetProduct(code);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.GetType().ToString());
     }
 }
 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());
     }
 }
        private void GetProduct(string productCode)
        {
            try
            {
                product = ProductDB.GetProduct(productCode);
            }

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