private void button23_Click(object sender, EventArgs e) { if (Application.OpenForms.OfType <FrmSobre>().Count() > 0) { MessageBox.Show("Sobre já está Aberto!", "SIG", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { FrmSobre Sobre = new FrmSobre { MdiParent = this }; Sobre.Show(); } }
private void BtnInfo_Click(object sender, EventArgs e) { FrmSobre sobre = new FrmSobre(); sobre.ShowDialog(); }
private void sobreToolStripMenuItem_Click(object sender, EventArgs e) { FrmSobre frmSobre = new FrmSobre(); frmSobre.ShowDialog(); }