コード例 #1
0
 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;
 }
コード例 #2
0
            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);
            }