private void butcadAnimal_Click(object sender, EventArgs e) { //chamar o form animal, passando o CPF try { FormCadAnimal formCadAnimal = new FormCadAnimal(mksCPFCLi.Text); formCadAnimal.Show(); } catch { MessageBox.Show("Porfavor preencha todos os campos"); } }
private void button1_Click(object sender, EventArgs e) { FormCadAnimal cadAnimal = new FormCadAnimal(""); cadAnimal.Show(); }