private void newVehicleModelToolStripMenuItem_Click(object sender, EventArgs e) { frmAddVehicleModel form = new frmAddVehicleModel(); form.MdiParent = this; form.Show(); }
private void btnAddModel_Click(object sender, EventArgs e) { frmAddVehicleModel frmModel = new frmAddVehicleModel(); frmModel.FormClosed += async delegate { await GetModel(); }; frmModel.ShowDialog(); }