Esempio n. 1
0
 private void btnVeiculo_Click(object sender, EventArgs e)
 {
     if (dgvDados.RowCount > 0)
     {
         var cliente = new Pessoa();
         cliente = _session.ServicePessoa.RetornarPorId(int.Parse(dgvDados.CurrentRow.Cells["Id"].Value.ToString()));
         frmPessoaVeiculo f = new frmPessoaVeiculo(true, cliente.Id);
         f.ShowDialog();
     }
 }
Esempio n. 2
0
 private void btnVeiculo_Click(object sender, EventArgs e)
 {
     if (dgvDados.RowCount > 0)
     {
         var Encontro = new Encontro();
         Encontro = _session.ServiceEncontro.RetornarPorId(int.Parse(dgvDados.CurrentRow.Cells["Id"].Value.ToString()));
         if (Encontro != null)
         {
             frmPessoaVeiculo f = new frmPessoaVeiculo(true, Encontro.PessoaId);
             f.ShowDialog();
         }
     }
 }