Beispiel #1
0
        // ADDS TOP SCORE TO LIST, OPENS THE HIGHEST SCORES WINDOW \\
        private void HighScore_FormClosed(object sender, FormClosedEventArgs e)
        {
            // REMOVES LOWEST SCORE IF NECESSARY \\
            if (TopScore.topScores.Count >= Form1.MAX_TOP_SCORES)
            {
                int      lowest      = TopScore.topScores.Min(i => i.Score);
                TopScore lowestScore = TopScore.topScores.Find(i => i.Score == lowest);
                TopScore.topScores.Remove(lowestScore);
            }

            // ADDS NEW HIGH SCORE \\
            TopScore.topScores.Add(Current);
            HighestScores highestscrs = new HighestScores();

            highestscrs.ShowDialog();
        }
Beispiel #2
0
        // DISPLAYS THE CURRENT TOP SCORES \\
        private void tsMenuItem_display_Click(object sender, EventArgs e)
        {
            HighestScores highest = new HighestScores();

            highest.ShowDialog();
        }