private void button1_Click(object sender, EventArgs e) { frmAssociaClienteContaBancaria janela = new frmAssociaClienteContaBancaria(); janela.ShowDialog(); janela.Dispose(); }
private void btnAssociaContasBanco_Click(object sender, EventArgs e) { frmAssociaClienteContaBancaria janela = new frmAssociaClienteContaBancaria(ttbCodigo.Text, ttbNome.Text, ttbCPF.Text, ttbCNPJ.Text,ttbRG.Text); janela.ShowDialog(); janela.Dispose(); }