private void pDVToolStripMenuItem_Click(object sender, EventArgs e) { if (hzzo == null) { hzzo = new Hzzo(); hzzo.MdiParent = this; hzzo.FormClosed += Hzzo_FormClosed; hzzo.Show(); hzzo.WindowState = FormWindowState.Maximized; } else { hzzo.BringToFront(); } }
void Hzzo_FormClosed(object sender, FormClosedEventArgs e) { hzzo = null; //throw new NotImplementedException(); }