private static string GetUserLineScore(AoCUser user, string day, string part, int pts) { string p = "<tr><td>{0}</td><td>{1}</td><td class=\"n\">{2}</td></tr>"; if (user.completion_day_level.ContainsKey(day) && user.completion_day_level[day].ContainsKey(part)) { return(string.Format(p, user.name, user.completion_day_level[day][part].dateTime.ToString("M/d/yyyy h:mm:ss tt"), pts)); } return(string.Format(p, user.name, " ", " ")); }
private static string GetUserTotalScore(AoCUser user, int pts) { string p = "<tr><td>{0}</td><td class=\"n\">{1}</td></tr>"; return(string.Format(p, user.name, pts.ToString())); }