Beispiel #1
0
            public ProgramListTableViewCell GetCell(ProgramViewModel program)
            {
                ProgramListTableViewCell output = null;

                for (int n = 0; n < this.Values.Count(); n++)
                {
                    var cell = this.TableView.CellAt(NSIndexPath.FromRowSection(n, 0)) as ProgramListTableViewCell;
                    if (cell != null)
                    {
                        if (Object.ReferenceEquals(cell.Program, program))
                        {
                            output = cell;
                            break;
                        }
                    }
                }

                return(output);
            }
Beispiel #2
0
            protected override UITableViewCell GetCellInternal(UITableView tableView, NSIndexPath indexPath)
            {
                ProgramListTableViewCell cell = (ProgramListTableViewCell)tableView.DequeueReusableCell(ProgramListTableViewCell.TableCellKey, indexPath);

                ProgramViewModel program = null;

                if (indexPath.Row < Values.Count)
                {
                    program = Values[indexPath.Row];
                }

                //create cell style
                if (program != null)
                {
                    cell.LoadCellValues(program);
                }

                return(cell);
            }
        private ProgramListTableViewCell GetCell(ProgramViewModel program)
        {
            ProgramListTableViewCell output = null;

            return(output);
        }