Пример #1
0
        public static void saveTop3Games(List <ScoreTime> games)
        {
            games = ScoreTime.Sort(games);
            if (games.Count > 3)
            {
                games.RemoveAt(3);
            }

            SerializeNow(games);
        }
Пример #2
0
 public static List <ScoreTime> getTopGames()
 {
     try
     {
         return(ScoreTime.Sort(DeSerializeNow()));
     }
     catch (FileNotFoundException)
     {
         return(new List <ScoreTime>());
     }
 }