private void recarregarTabela() { CAMADAS.BLL.ProdutoBLL bllProd = new CAMADAS.BLL.ProdutoBLL(); if (rbTodos.Checked) { dgvProdutos.DataSource = bllProd.SelectAll(); } else if (rbId.Checked) { dgvProdutos.DataSource = bllProd.SelectById(Convert.ToInt32(txtPesquisar.Text)); } else if (rbProduto.Checked) { dgvProdutos.DataSource = bllProd.SelectByProduto(txtPesquisar.Text); } else if (rbIdCategoria.Checked) { dgvProdutos.DataSource = bllProd.SelectByIdCategoria(Convert.ToInt32(txtPesquisar.Text)); } }