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