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