Beispiel #1
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            TelaAjuda ajuda = new TelaAjuda();

            if (Application.OpenForms.OfType <TelaAjuda>().Count() > 0)
            {
                MessageBox.Show("Esta janela já está em execução.", "!",
                                MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                Application.OpenForms.OfType <TelaAjuda>().First().Focus();
            }
            else
            {
                ajuda.Show();
            }
        }
Beispiel #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            TelaAjuda ajuda = new TelaAjuda();

            ajuda.Show();
        }