public AccountTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <AccountItemViewModel> collection) : base(tableView, collection, AccountCellView.Key, 74f) { tableView.RowHeight = 74f; tableView.SeparatorInset = new UIEdgeInsets(0, tableView.RowHeight, 0, 0); tableView.RegisterClassForCellReuse(typeof(AccountCellView), AccountCellView.Key); }
public EventTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <EventItemViewModel> collection) : base(tableView, collection, NewsCellView.Key, 100f) { _cache = new TableViewCellHeightCache <NewsCellView, EventItemViewModel>(100f, () => NewsCellView.Create(true)); tableView.SeparatorInset = NewsCellView.EdgeInsets; tableView.RegisterNibForCellReuse(NewsCellView.Nib, NewsCellView.Key); }
protected ReactiveTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <TViewModel> collection, Foundation.NSString cellKey, nfloat height, nfloat?heightHint = null, Action <UITableViewCell> initializeCellAction = null) : base(tableView, collection, cellKey, (float)height, initializeCellAction) { tableView.RowHeight = height; tableView.EstimatedRowHeight = heightHint ?? tableView.EstimatedRowHeight; }
public UserTableViewSource( UITableView tableView, IReactiveNotifyCollectionChanged <UserDetailsViewModel> collection, NSString cellKey, float sizeHint, Action <UITableViewCell> initializeCellAction = null) : base(tableView, collection, cellKey, sizeHint, initializeCellAction) { }
protected ReactiveTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <TViewModel> collection, Foundation.NSString cellKey, nfloat sizeHint, Action <UITableViewCell> initializeCellAction = null) : base(tableView, collection, cellKey, (float)sizeHint, initializeCellAction) { tableView.RowHeight = sizeHint; tableView.EstimatedRowHeight = sizeHint; collection.CountChanged.Select(x => x == 0).Subscribe(_isEmptySubject.OnNext); }
protected ReactiveTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <TViewModel> collection, Foundation.NSString cellKey, nfloat height, nfloat?heightHint = null, Action <UITableViewCell> initializeCellAction = null) : base(tableView, collection, cellKey, (float)height, initializeCellAction) { tableView.RowHeight = height; tableView.EstimatedRowHeight = heightHint ?? tableView.EstimatedRowHeight; collection.CountChanged.Select(x => x == 0).Subscribe(_isEmptySubject.OnNext); (collection as IReactiveCollection <TViewModel>).Do(x => _isEmptySubject.OnNext(!x.Any())); }
public IssueMilestoneTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <IssueMilestoneItemViewModel> collection) : base(tableView, collection, MilestoneTableViewCell.Key, 80f) { tableView.RegisterClassForCellReuse(typeof(MilestoneTableViewCell), MilestoneTableViewCell.Key); collection.CountChanged.Subscribe(x => { Console.WriteLine("Mielstones shoudlb e: " + x); }); }
public ReactiveCollectionViewSource(UICollectionView collectionView, IReactiveNotifyCollectionChanged collection, NSString cellKey, Action <UICollectionViewCell> initializeCellAction = null) : this(collectionView) { this.Data = new[] { new CollectionViewSectionInformation <UICollectionViewCell>(collection, cellKey, initializeCellAction) }; }
public IssueLabelTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <IssueLabelItemViewModel> collection) : base(tableView, collection, IssueLabelCellView.Key, 44f) { tableView.RegisterClassForCellReuse(typeof(IssueLabelCellView), IssueLabelCellView.Key); }
public ReactiveTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged collection, string cellKey, float sizeHint, Action <UITableViewCell> initializeCellAction = null) : this(tableView, new[] { new TableSectionInformation <UITableViewCell>(collection, cellKey, sizeHint, initializeCellAction) }) { }
public ReactiveTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged collection, string cellKey, float sizeHint, Action<UITableViewCell> initializeCellAction = null) : this (tableView, new[] { new TableSectionInformation<UITableViewCell>(collection, cellKey, sizeHint, initializeCellAction), }) { }
public ContactSource(UITableView tableView, IReactiveNotifyCollectionChanged <MobileCore.ViewModels.Contacts.Contact> collection, NSString cellKey, float sizeHint, Action <UITableViewCell> initializeCellAction = null) : base(tableView, collection, cellKey, sizeHint, initializeCellAction) { }
public FeedbackTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <FeedbackItemViewModel> collection) : base(tableView, collection, FeedbackCellView.Key, UITableView.AutomaticDimension, 69.0f) { tableView.RegisterNibForCellReuse(FeedbackCellView.Nib, FeedbackCellView.Key); }
public GistTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <GistItemViewModel> collection) : base(tableView, collection, GistCellView.Key, UITableView.AutomaticDimension, 60f) { tableView.RegisterNibForCellReuse(GistCellView.Nib, GistCellView.Key); }
public PullRequestTableViewSource(MonoTouch.UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <PullRequestItemViewModel> collection) : base(tableView, collection, PullRequestCellView.Key, 60.0f) { tableView.RegisterNibForCellReuse(PullRequestCellView.Nib, PullRequestCellView.Key); }
public ReleasesTableViewSource(MonoTouch.UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <ReleaseItemViewModel> collection) : base(tableView, collection, ReleaseTableViewCell.Key, 44.0f) { tableView.RegisterClassForCellReuse(typeof(ReleaseTableViewCell), ReleaseTableViewCell.Key); }
public IssueMilestoneTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <IssueMilestoneItemViewModel> collection) : base(tableView, collection, MilestoneTableViewCell.Key, 80f) { tableView.RegisterClassForCellReuse(typeof(MilestoneTableViewCell), MilestoneTableViewCell.Key); }
public RepositoryTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <RepositoryItemViewModel> collection) : base(tableView, collection, RepositoryCellView.Key, _estimatedHeight) { _cache = new TableViewCellHeightCache <RepositoryCellView, RepositoryItemViewModel>(_estimatedHeight, RepositoryCellView.Create); tableView.RegisterNibForCellReuse(RepositoryCellView.Nib, RepositoryCellView.Key); }
public UserTableViewSource(UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <UserItemViewModel> collection) : base(tableView, collection, UserTableViewCell.Key, 44.0f) { tableView.RegisterClassForCellReuse(typeof(UserTableViewCell), UserTableViewCell.Key); }
public LanguageTableViewSource(UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <LanguageItemViewModel> collection) : base(tableView, collection, LanguageTableViewCell.Key, 44f) { tableView.RegisterClassForCellReuse(typeof(LanguageTableViewCell), LanguageTableViewCell.Key); }
public PullRequestTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <PullRequestItemViewModel> collection) : base(tableView, collection, PullRequestCellView.Key, 60.0f) { _cache = new TableViewCellHeightCache <PullRequestCellView, PullRequestItemViewModel>(60f, PullRequestCellView.Create); tableView.RegisterNibForCellReuse(PullRequestCellView.Nib, PullRequestCellView.Key); }
public FeedbackTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <FeedbackItemViewModel> collection) : base(tableView, collection, FeedbackCellView.Key, 69.0f) { _cache = new TableViewCellHeightCache <FeedbackCellView, FeedbackItemViewModel>(69.0f, () => FeedbackCellView.Create(true)); tableView.RegisterNibForCellReuse(FeedbackCellView.Nib, FeedbackCellView.Key); }
public RepositoryTableViewSource(MonoTouch.UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <RepositoryItemViewModel> collection) : base(tableView, collection, RepositoryCellView.Key, 60.0f) { tableView.RegisterNibForCellReuse(RepositoryCellView.Nib, RepositoryCellView.Key); }
public ReleasesTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <ReleaseItemViewModel> collection) : base(tableView, collection, ReleaseTableViewCell.Key, UITableView.AutomaticDimension) { tableView.RegisterClassForCellReuse(typeof(ReleaseTableViewCell), ReleaseTableViewCell.Key); }
public IssueTableViewSource(UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <IssueItemViewModel> collection) : base(tableView, collection, IssueCellView.Key, HintSize) { tableView.RegisterNibForCellReuse(IssueCellView.Nib, IssueCellView.Key); }
public ReactiveTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <TSource> collection, NSString cellKey, float sizeHint, Action <UITableViewCell> initializeCellAction = null) : this(tableView) { this.Data = new[] { new TableSectionInformation <TSource, UITableViewCell>(collection, cellKey, sizeHint, initializeCellAction) }; }
public RepositoryTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <RepositoryItemViewModel> collection) : base(tableView, collection, RepositoryCellView.Key, UITableView.AutomaticDimension, _estimatedHeight) { tableView.RegisterNibForCellReuse(RepositoryCellView.Nib, RepositoryCellView.Key); }
public FeedbackTableViewSource(MonoTouch.UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <FeedbackItemViewModel> collection) : base(tableView, collection, FeedbackCellView.Key, 69.0f) { _tableView = tableView; tableView.RegisterNibForCellReuse(FeedbackCellView.Nib, FeedbackCellView.Key); }
public SourceTreeTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <SourceTreeItemViewModel> collection) : base(tableView, collection, SourceTreeTableViewCell.Key, 44) { tableView.RegisterClassForCellReuse(typeof(SourceTreeTableViewCell), SourceTreeTableViewCell.Key); }
public CommitTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <CommitItemViewModel> collection) : base(tableView, collection, CommitCellView.Key, UITableView.AutomaticDimension, 80) { tableView.RegisterNibForCellReuse(CommitCellView.Nib, CommitCellView.Key); }
public IssueAssigneeTableViewSource(UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <IssueAssigneeItemViewModel> collection) : base(tableView, collection, IssueAssigneeTableViewCell.Key, 44.0f) { tableView.RegisterClassForCellReuse(typeof(IssueAssigneeTableViewCell), IssueAssigneeTableViewCell.Key); }