コード例 #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();
        }