//creates the cd chamber private void btnCreateCDChamber_Click(System.Object sender, System.EventArgs e) { if (txtCDChamberInstrumentList.Enabled == false) { FormController.activateCDClassical(this); FormController.activateCDChamber(this); FormController.deactivateAllButCDChamber(this); } else { if (validateCDChamber()) { int tempUPC = Convert.ToInt32(txtProductUPC.Text); decimal tempPrice = Convert.ToDecimal(txtProductPrice.Text); int tempQuant = Convert.ToInt32(txtProductQuantity.Text); string tempCDArtist = txtCDClassicalArtists.Text; string tempCDLabel = txtCDClassicalLabel.Text; string tempChamberInstList = txtCDChamberInstrumentList.Text; dbFunctions.InsertProduct(tempUPC, tempPrice, txtProductTitle.Text, tempQuant, "CDChamber"); dbFunctions.InsertCDClassical(tempUPC, tempCDLabel, tempCDArtist); dbFunctions.InsertCDChamber(tempUPC, tempChamberInstList); MessageBox.Show("CD CHamber added"); } } }