Пример #1
0
        private void btnNovoCarro_Click(object sender, EventArgs e)
        {
            var frm = new frmCadastroVeiculo();

            frm.ShowDialog();
            LoadVeiculos();
        }
Пример #2
0
        private void dgvVeiculos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            var id            = Convert.ToInt32(dgvVeiculos.Rows[e.RowIndex].Cells[0].Value);
            var veiculoEditar = _veiculoNegocio.Selecionar(id);
            var form          = new frmCadastroVeiculo(veiculoEditar);

            form.ShowDialog();
            LoadVeiculos();
        }
Пример #3
0
        private void usuarioToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var frm = new frmCadastroVeiculo();

            frm.ShowDialog();
        }