예제 #1
0
        private void newVehicleModelToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAddVehicleModel form = new frmAddVehicleModel();

            form.MdiParent = this;
            form.Show();
        }
예제 #2
0
        private void btnAddModel_Click(object sender, EventArgs e)
        {
            frmAddVehicleModel frmModel = new frmAddVehicleModel();

            frmModel.FormClosed += async delegate {
                await GetModel();
            };
            frmModel.ShowDialog();
        }