Пример #1
0
 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;
 }
Пример #2
0
 private void lMaster_Close(object sender, FormClosedEventArgs e)
 {
     lineMaster = null;
 }