private void gDI3ToolStripMenuItem_Click(object sender, EventArgs e) { if (gdi3 == null) { gdi3 = new GDI3(); gdi3.MdiParent = this; gdi3.FormClosed += new FormClosedEventHandler(gdi3_Close); gdi3.Show(); } else { gdi3.Activate(); } gdi3.WindowState = FormWindowState.Maximized; }
private void gdi3_Close(object sender, FormClosedEventArgs e) { gdi3 = null; }