示例#1
0
 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);
 }
示例#2
0
 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;
 }
示例#4
0
 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);
 }
示例#6
0
 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()));
 }
示例#7
0
        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);
            });
        }
示例#8
0
 public ReactiveCollectionViewSource(UICollectionView collectionView, IReactiveNotifyCollectionChanged collection, NSString cellKey, Action <UICollectionViewCell> initializeCellAction = null)
     : this(collectionView) {
     this.Data = new[] { new CollectionViewSectionInformation <UICollectionViewCell>(collection, cellKey, initializeCellAction) };
 }
示例#9
0
 public IssueLabelTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <IssueLabelItemViewModel> collection)
     : base(tableView, collection, IssueLabelCellView.Key, 44f)
 {
     tableView.RegisterClassForCellReuse(typeof(IssueLabelCellView), IssueLabelCellView.Key);
 }
示例#10
0
 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), })
 {
 }
示例#12
0
 public ContactSource(UITableView tableView, IReactiveNotifyCollectionChanged <MobileCore.ViewModels.Contacts.Contact> collection, NSString cellKey, float sizeHint, Action <UITableViewCell> initializeCellAction = null)
     : base(tableView, collection, cellKey, sizeHint, initializeCellAction)
 {
 }
示例#13
0
 public FeedbackTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <FeedbackItemViewModel> collection)
     : base(tableView, collection, FeedbackCellView.Key, UITableView.AutomaticDimension, 69.0f)
 {
     tableView.RegisterNibForCellReuse(FeedbackCellView.Nib, FeedbackCellView.Key);
 }
示例#14
0
 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);
 }
示例#16
0
 public ReleasesTableViewSource(MonoTouch.UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <ReleaseItemViewModel> collection)
     : base(tableView, collection, ReleaseTableViewCell.Key, 44.0f)
 {
     tableView.RegisterClassForCellReuse(typeof(ReleaseTableViewCell), ReleaseTableViewCell.Key);
 }
示例#17
0
 public IssueMilestoneTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <IssueMilestoneItemViewModel> collection)
     : base(tableView, collection, MilestoneTableViewCell.Key, 80f)
 {
     tableView.RegisterClassForCellReuse(typeof(MilestoneTableViewCell), MilestoneTableViewCell.Key);
 }
示例#18
0
 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);
 }
示例#19
0
 public UserTableViewSource(UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <UserItemViewModel> collection)
     : base(tableView, collection, UserTableViewCell.Key, 44.0f)
 {
     tableView.RegisterClassForCellReuse(typeof(UserTableViewCell), UserTableViewCell.Key);
 }
示例#20
0
 public LanguageTableViewSource(UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <LanguageItemViewModel> collection)
     : base(tableView, collection, LanguageTableViewCell.Key, 44f)
 {
     tableView.RegisterClassForCellReuse(typeof(LanguageTableViewCell), LanguageTableViewCell.Key);
 }
示例#21
0
 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);
 }
示例#22
0
 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);
 }
示例#23
0
 public RepositoryTableViewSource(MonoTouch.UIKit.UITableView tableView, IReactiveNotifyCollectionChanged <RepositoryItemViewModel> collection)
     : base(tableView, collection, RepositoryCellView.Key, 60.0f)
 {
     tableView.RegisterNibForCellReuse(RepositoryCellView.Nib, RepositoryCellView.Key);
 }
示例#24
0
 public ReleasesTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <ReleaseItemViewModel> collection)
     : base(tableView, collection, ReleaseTableViewCell.Key, UITableView.AutomaticDimension)
 {
     tableView.RegisterClassForCellReuse(typeof(ReleaseTableViewCell), ReleaseTableViewCell.Key);
 }
示例#25
0
 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);
 }
示例#28
0
 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);
 }