public static void saveTop3Games(List <ScoreTime> games) { games = ScoreTime.Sort(games); if (games.Count > 3) { games.RemoveAt(3); } SerializeNow(games); }
public static List <ScoreTime> getTopGames() { try { return(ScoreTime.Sort(DeSerializeNow())); } catch (FileNotFoundException) { return(new List <ScoreTime>()); } }