private void btnCadastrar_Click(object sender, EventArgs e)
        {
            try
            {
                NovoParceiroBusiness parceiro = new NovoParceiroBusiness();
                parceiro.Save(txtNomeEmpresa.Text, txtCnpj.Text, dateTimePicker1.Value, dateTimePicker2.Value, numericUpDown1.Value.ToString());

                if (parceiro.Clear == true)
                {
                    frmCadastroParceiro x = new frmCadastroParceiro();
                    x.Show();
                    this.Close();
                }
            }
            catch
            {
                MessageBox.Show("OCORREU UM ERRO!", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
        private void cadastroToolStripMenuItem_Click_2(object sender, EventArgs e)
        {
            frmCadastroParceiro parceiro = new frmCadastroParceiro();

            parceiro.Show();
        }