示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (box_Op.Text == "Facil")
            {
                veloz = 1;
            }
            else if (box_Op.Text == "Medio")
            {
                veloz = 5;
            }
            else if (box_Op.Text == "Dificil")
            {
                veloz = 10;
            }
            else if (box_Op.Text == "Extremo")
            {
                veloz = 17;
            }

            if (Application.OpenForms.Count > 1)
            {
                Application.OpenForms[Application.OpenForms.Count - 2].Hide();
            }
            this.Close();

            frm_Jogo f4 = new frm_Jogo(true, veloz);

            f4.Show();
        }
示例#2
0
        private void lbl_OP1_Click(object sender, EventArgs e)
        {
            this.Hide();

            frm_Jogo f4 = new frm_Jogo(true, 2);

            f4.Show();
        }
示例#3
0
        private void btn_NovoJogo_Click(object sender, EventArgs e)
        {
            this.Close();
            if (Application.OpenForms.Count > 2)
            {
                Application.OpenForms[Application.OpenForms.Count - 2].Close();
            }
            frm_Jogo f2 = new frm_Jogo(true, veloz);

            f2.Show();
        }