Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 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);
 }