private void btnNovoVeiculo_Click(object sender, EventArgs e) { frmCadVeiculo frm = new frmCadVeiculo(); frm.MdiParent = this.MdiParent; frm.populateComboBox(); frm.Show(); }
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(); }