private void button1_Click(object sender, EventArgs e) { try { int id = int.Parse(textBox1.Text); string nome = textBox2.Text; string email = textBox3.Text; Responsavel Responsavel = new Responsavel(id, nome, email); ResponsavelDAO RespDAO = new ResponsavelDAO(); RespDAO.Incluir(Responsavel); MessageBox.Show("Responsavel cadastrado com sucesso!"); textBox1.Text= (""); textBox2.Text = (""); textBox3.Text = (""); } catch (OracleException ex) { MessageBox.Show(ex.Message); } }