private void storedProceduresToolStripMenuItem_Click(object sender, EventArgs e) { Boolean ok = false; foreach (Form frm in this.MdiChildren) { if (frm is UIGerador) { frm.BringToFront(); ok = true; } } if (ok == false) { UIGerador g = new UIGerador(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); } }