public List <string> GetPlayerScoreList(Player p) { List <string> returnable = new List <string>(); foreach (Game g in data.Games) { Score s = p.MaxScoreForGame(g); if (s == null) { continue; } returnable.Add(g.Name.PadRight(15) + "\t" + s.Points + "\t" + g.AllTimeTopScore.Points); } return(returnable); }
public List <string> GetPlayerScoreList(Player p) { var returnable = new List <string>(); foreach (var game in dbData.Item2) { var score = p.MaxScoreForGame(game); if (score == null) { continue; } returnable.Add(game.Name.PadRight(STRING_LENGTH) + "\t" + score.Points + "\t" + game.AllTimeTopScore.Points); } return(returnable); }