public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var timesheet = Timesheets.ElementAt(indexPath.Row); var cell = tableView.DequeueReusableCell(CELL_IDENTIFIER) as OutstandingTimesheetsCell; if (cell == null) cell = new OutstandingTimesheetsCell(CELL_IDENTIFIER); cell.UpdateCell(timesheet.Date, timesheet.Customer, timesheet.Project); cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; return cell; }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var timesheet = Timesheets.ElementAt(indexPath.Row); var cell = tableView.DequeueReusableCell(CELL_IDENTIFIER) as OutstandingTimesheetsCell; if (cell == null) { cell = new OutstandingTimesheetsCell(CELL_IDENTIFIER); } cell.UpdateCell(timesheet.Date, timesheet.Customer, timesheet.Project); cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; return(cell); }