protected string MakeRow(Produce produce) { var cells = new List<String>(13); if (produce.InSeasonForMonth(MarketDay.Month)) { cells.Add(String.Format("<td class=\"{1}\">{0}</td>", produce.Name, "inseason")); } else { cells.Add(String.Format("<td>{0}</td>", produce.Name)); } for (int month = 1; month <= 12; month++) { string className = (MarketDay.Month == month) ? "current " : String.Empty; if (produce.InSeasonForMonth(month)) { cells.Add(String.Format("<td class=\"{0} available\" title=\"{1}\"> </td>", className, new DateTime(DateTime.Today.Year, month, 1).ToString("MMMM"))); } else { cells.Add(String.Format("<td class=\"{0}\"> </td>", className)); } } return String.Join(String.Empty, cells.ToArray()); }