// Araba Eklemeyi sağlayan method private void miAddCar_Click_1(object sender, EventArgs e) { if (frmC == null) { frmC = new FrmCarAdd(); frmC.MdiParent = this; frmC.Show(); frmC.FormClosed += frmC_FormClosed; } else { return; } }
private void frmC_FormClosed(object sender, FormClosedEventArgs e) { frmC.Dispose(); frmC = null; }