Example #1
0
 private void mEstoqueTransp_Click(object sender, EventArgs e)
 {
     try
     {
         formConsultaPessoa form = new formConsultaPessoa();
         form.tpConsultaPessoa = consultaPessoaPorTipo.Transportador;
         form.Text             = "Transportadores";
         form.ShowDialog();
         form.Dispose();
     }
     catch (Exception ex)
     {
         TratarExcecao(ex);
     }
 }
Example #2
0
 private void mComercialCliente_Click(object sender, EventArgs e)
 {
     try
     {
         formConsultaPessoa form = new formConsultaPessoa();
         form.tpConsultaPessoa = consultaPessoaPorTipo.Cliente;
         form.Text             = "Clientes";
         form.ShowDialog();
         form.Dispose();
     }
     catch (Exception ex)
     {
         TratarExcecao(ex);
     }
 }