public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { OSTimesheetCell cell = (OSTimesheetCell)tableView.DequeueReusableCell(OSTimesheetCellId, indexPath); Assignment assignment = controller.completedAssignments [indexPath.Row]; cell.DayLabel.Text = assignment.Start.ToString("dd"); cell.MonthLabel.Text = assignment.Start.ToString("MMM"); cell.FamilyNameLable.Text = assignment.Placement.ToFamilyNameString(); cell.ProfileImage.Image = assignment.Placement.GetProfileImage(); Timesheet timesheet = controller.GetTimesheet(assignment); if (timesheet == null) { cell.TimesLabel.Text = assignment.ToTimesString(); cell.CheckImage.Image = new UIImage("icon-check-off.png"); cell.IconClockImage.Image = new UIImage("icon-clock-off.png"); } else { cell.TimesLabel.Text = timesheet.ToDurationString(); cell.CheckImage.Image = new UIImage("icon-check-on.png"); cell.IconClockImage.Image = new UIImage("icon-clock-on.png"); cell.DayLabel.TextColor = cell.MonthLabel.TextColor = cell.FamilyNameLable.TextColor = cell.TimesLabel.TextColor = Utility.DefaultTextColor; } return(cell); }