Exemplo n.º 1
0
        private void btnExcluirSala_Click(object sender, EventArgs e)
        {
            VerificaFormAberto();
            pnlForm.Visible = true;
            frmExcluirSala excluirSala = new frmExcluirSala();

            excluirSala.TopLevel = false;
            pnlForm.Controls.Add(excluirSala);
            excluirSala.Show();
        }
Exemplo n.º 2
0
        private void btnExcluirSala_Click(object sender, EventArgs e)
        {
            VerificaFormAberto();
            frmExcluirSala excluirSala = new frmExcluirSala();

            if (Application.OpenForms.OfType <frmExcluirSala>().Count() > 0)
            {
                Application.OpenForms[excluirSala.Name].Focus();
            }
            else
            {
                excluirSala.Show();
                excluirSala.DesktopLocation = new Point(629, 288);
            }
        }