Exemplo n.º 1
0
        private void btnTextPractice_Click(object sender, EventArgs e)
        {
            this.Dispose();
            frmTypingTest frm = new frmTypingTest();

            frm.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            switch (IDGame)
            {
            case 1:
            {
                this.Dispose();
                frmSpeedTestABC frm = new frmSpeedTestABC();
                frm.strcmbTestABC = strcmbTestABC;
                frm.ShowDialog();
                break;
            }

            case 2:
            {
                this.Dispose();
                frmTypingTest frm = new frmTypingTest();
                frm.strTime = strTime;
                frm.ShowDialog();
                break;
            }

            case 3:
            {
                this.Dispose();
                frmFlappyBird frm = new frmFlappyBird();
                frm.strLevel = strLevel;
                frm.ShowDialog();
                break;
            }

            case 4:
            {
                this.Dispose();
                frmEggDrop frm = new frmEggDrop();
                frm.strLevel = strLevel;
                frm.ShowDialog();
                break;
            }

            case 5:
            {
                this.Dispose();
                frmCharFallOut frm = new frmCharFallOut();
                frm.strLevel = strLevel;
                frm.ShowDialog();
                break;
            }

            case 6:
            {
                this.Dispose();
                frmBlockDrop frm = new frmBlockDrop();
                frm.strLevel = strLevel;
                frm.ShowDialog();
                break;
            }

            default:
            {
                break;
            }
            }
        }