private void gDI4ToolStripMenuItem_Click(object sender, EventArgs e) { if (gdi4 == null) { gdi4 = new GDI4_Pentool(); gdi4.MdiParent = this; gdi4.FormClosed += new FormClosedEventHandler(gdi4_Close); gdi4.Show(); } else { gdi4.Activate(); } gdi4.WindowState = FormWindowState.Maximized; }
private void gdi4_Close(object sender, FormClosedEventArgs e) { gdi4 = null; }