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