Beispiel #1
0
        private void btnEggDrop_Click(object sender, EventArgs e)
        {
            this.Dispose();
            frmEggDrop frm = new frmEggDrop();

            frm.ShowDialog();
        }
Beispiel #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;
            }
            }
        }