示例#1
0
        private void btnNextel_Click(object sender, EventArgs e)
        {
            if (cbJogo1.Checked == true)
            {
                Tela3 t3 = new Tela3();
                t3.Show();
                this.Hide();
            }

            if (cbJogo2.Checked == true)
            {
                Tela3 t3 = new Tela3();
                t3.Show();
                this.Hide();
            }
            if (cbJogo3.Checked == true)
            {
                Tela3 t3 = new Tela3();
                t3.Show();
            }
            if (cbJogo4.Checked == true)
            {
                Tela3 t3 = new Tela3();
                t3.Show();
            }
        }
示例#2
0
        private void BtnSim2_Click(object sender, EventArgs e)
        {
            var tela3 = new Tela3();

            tela3.ShowDialog();
            this.Close();
        }
示例#3
0
        private void btnVoltar_Click(object sender, EventArgs e)
        {
            var voltar = new Tela3();

            voltar.ShowDialog();
            this.Close();
        }
示例#4
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms.OfType <Tela3>().Count() > 0)
     {
         Form Jogo = Application.OpenForms["Tela3"];
         Jogo.Show();
         this.Hide();
     }
     else
     {
         Form Jogo = new Tela3();
         Jogo.Show();
         this.Hide();
     }
 }