示例#1
0
        private void btnAddV_Click(object sender, EventArgs e)
        {
            IUVeiculoCliente tela = new IUVeiculoCliente(0, obj);

            tela.ShowDialog();
            CarregaVeiculos();
        }
示例#2
0
 private void btnEditV_Click(object sender, EventArgs e)
 {
     if (dgvDados.SelectedRows.Count == 1)
     {
         int id = Convert.ToInt32(dgvDados.CurrentRow.Cells[0].Value.ToString());
         IUVeiculoCliente tela = new IUVeiculoCliente(id, obj);
         tela.ShowDialog();
         CarregaVeiculos();
     }
     else
     {
         MessageBox.Show("Selecione apenas um Registro!!!");
     }
 }