Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }