예제 #1
0
        private void btnNovoVeiculo_Click(object sender, EventArgs e)
        {
            frmCadVeiculo frm = new frmCadVeiculo();

            frm.MdiParent = this.MdiParent;
            frm.populateComboBox();
            frm.Show();
        }
예제 #2
0
        private void editarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadVeiculo frm = new frmCadVeiculo();

            frm.MdiParent = this.MdiParent;
            frm.Text      = "Editar Veículo";
            frm.populateData(dgvVeiculos.Rows[dgvVeiculos.SelectedRows[0].Index].Cells["Id"].Value.ToString());
            frm.Show();
        }