private void buttonAddProduct_Click(object sender, EventArgs e) { try { Product product = RetriveProductInformation(); ProductDBManager pdbm = new ProductDBManager(); pdbm.AddProduct(product, idUser); } catch (Exception ex) { MessageBox.Show(ex.Message); throw; } }