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