public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
		{
			var cell = (CustomCell)tableView.DequeueReusableCell(this.MovieListCellId);
			if (cell == null)
			{
				cell = new CustomCell((NSString)this.MovieListCellId);
			}
			int row = indexPath.Row;
			cell.UpdateCell(this._movieList[row].Name, this._movieList[row].YearReleased, this._movieList[row].ImagePath, this._movieList[row].Actors);

			return cell;
		}
예제 #2
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = (CustomCell)tableView.DequeueReusableCell(this.MovieListCellId);

            if (cell == null)
            {
                cell = new CustomCell((NSString)this.MovieListCellId);
            }

            int row = indexPath.Row;

            cell.UpdateCell(this._movieList[row].Name, this._movieList[row].MovieYear.ToString(),
                            this._movieList[row].CastMembers.ToString(), this._movieList[row].ImageName);

            return(cell);
        }