public override UITableViewCell GetCell(UITableView tv) { var c = tv.DequeueReusableCell(PullRequestCellView.Key) as PullRequestCellView ?? PullRequestCellView.Create(); c.Set(_model.Title, _model.CreatedAt, new GitHubAvatar(_model.User?.AvatarUrl)); return(c); }
public override UITableViewCell GetCell(UITableView tv) { var c = tv.DequeueReusableCell(PullRequestCellView.Key) as PullRequestCellView ?? PullRequestCellView.Create(); c.Bind(_model.Title, _model.CreatedOn.Humanize(), _avatar); return(c); }
public PullRequestTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <PullRequestItemViewModel> collection) : base(tableView, collection, PullRequestCellView.Key, 60.0f) { _cache = new TableViewCellHeightCache <PullRequestCellView, PullRequestItemViewModel>(60f, () => PullRequestCellView.Create(true)); tableView.RegisterNibForCellReuse(PullRequestCellView.Nib, PullRequestCellView.Key); }