//------------------------------------------------------------------------------------------------------------------- private void btLocalizar_Click(object sender, EventArgs e) { BLLCliente bll = new BLLCliente(); if (rbNome.Checked == true) { dgvDados.DataSource = bll.ListagemNome(txtValor.Text); } else { dgvDados.DataSource = bll.ListagemCPFCNPJ(txtValor.Text); } txtValor.Clear(); txtValor.Focus(); }