private void playButton_Click(object sender, EventArgs e)
        {
            // takes you to the play screen
            playButton.Visible      = false;
            controlButton.Visible   = false;
            highScoreButton.Visible = false;
            exitButton.Visible      = false;
            PlayScreen ps = new PlayScreen();

            this.Controls.Add(ps);
        }
Exemplo n.º 2
0
        private void playAgainButton_Click(object sender, EventArgs e)
        {
            // takes you back to the playscreen
            Write();
            Form1.timer.Reset();
            Form1.lives = 3;
            score       = 0;
            PlayScreen ps = new PlayScreen();

            this.Controls.Add(ps);
            this.Controls.Remove(this);
            playAgainButton.Visible = false;
            exitButton.Visible      = false;
            scoreLabel.Visible      = false;
            yourScoreLabel.Visible  = false;
        }