private void panel1item1_ItemActivated(object sender, QCompositeEventArgs e) { if (dktr == null) { dktr = new FormDokter(); dktr.MdiParent = this; dktr.FormClosed += new FormClosedEventHandler(FormDokter_FormClosed); dktr.Show(); } else { dktr.Activate(); } }
private void FormDokter_FormClosed(object sender, FormClosedEventArgs e) { dktr = null; }