private void gDIBrushToolStripMenuItem_Click(object sender, EventArgs e) { this.gDIToolStripMenuItem.ForeColor = Color.White; if (gdibr == null) { gdibr = new GDI_Brush(); gdibr.MdiParent = this; gdibr.FormClosed += new FormClosedEventHandler(gdibr_Close); gdibr.Show(); } else { gdibr.Activate(); } gdibr.WindowState = FormWindowState.Maximized; }
private void gdibr_Close(object sender, FormClosedEventArgs e) { gdibr = null; }