示例#1
0
        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");
            }
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormCadAnimal cadAnimal = new FormCadAnimal("");

            cadAnimal.Show();
        }