private void button3_Click(object sender, EventArgs e) { try { PesquisaProdutoPdVenda TelaPesquisa = new PesquisaProdutoPdVenda(this); if (RadButIdProd.Checked) { TelaPesquisa.TipoProcura = 1; } if (RadButNomeProd.Checked) { TelaPesquisa.TipoProcura = 2; } TelaPesquisa.ShowDialog(); } catch (Exception ex) { MessageBox.Show("Ao filtrar dados dados: " + ex.Message.ToString(), "Erro ao Filtrar", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void button3_Click(object sender, EventArgs e) { try { PesquisaProdutoPdVenda TelaPesquisa = new PesquisaProdutoPdVenda(this); if (RadButIdProd.Checked) TelaPesquisa.TipoProcura = 1; if (RadButNomeProd.Checked) TelaPesquisa.TipoProcura = 2; TelaPesquisa.ShowDialog(); } catch (Exception ex) { MessageBox.Show("Ao filtrar dados dados: " + ex.Message.ToString(), "Erro ao Filtrar", MessageBoxButtons.OK, MessageBoxIcon.Error); } }