private void التكهينToolStripMenuItem_Click(object sender, EventArgs e) { if (takhen == null) { takhen = new takhen(); takhen.MdiParent = this; takhen.FormClosed += new FormClosedEventHandler(takhen_FormClosed); takhen.Show(); } else { takhen.Activate(); } }
void takhen_FormClosed(object sender, FormClosedEventArgs e) { takhen = null; //throw new NotImplementedException(); }