public static void AddPlayer(PlayerScore score) { HighScores.Add(score); HighScores.Sort(new PlayerComparator()); }
private void btnDone_Click(object sender, EventArgs e) { PlayerScore = new PlayerScore(tbPlayerName.Text, Score); Serializer.AddPlayer(PlayerScore); this.Close(); }