private void códigosCSharpToolStripMenuItem_Click(object sender, EventArgs e) { Boolean ok = false; foreach (Form frm in this.MdiChildren) { if (frm is UIGeradorCSharp) { frm.BringToFront(); ok = true; } } if (ok == false) { UIGeradorCSharp g = new UIGeradorCSharp(objbo); g.MdiParent = this; g.WindowState = FormWindowState.Maximized; g.ShowInTaskbar = false; g.Show(); } else { KryptonMessageBox.Show(null, "A Tela de Geração de Procedures já se encontra aberta", "A V I S O", MessageBoxButtons.OK, MessageBoxIcon.Information); } }