private void playAgain_Click(object sender, EventArgs e)
        {
            HighScoreScreen cs = new HighScoreScreen();

            Form f = this.FindForm();

            f.Controls.Remove(this);


            f.Controls.Add(cs);
        }
Beispiel #2
0
        private void Win()
        {
            if (hero.x > 690 && hero.y > 480)
            {
                Gametimer.Enabled = false;
                HighScoreScreen cs = new HighScoreScreen();

                Form f = this.FindForm();

                f.Controls.Remove(this);

                f.Controls.Add(cs);
            }
        }