Пример #1
0
        public override void UpdateDesign()
        {
            tableView.Hidden = true;

            emptyView       = BookListEmptyView.Create();
            emptyView.Frame = mainView.Frame;
            mainView.AddSubview(emptyView);

            activityIndicator.StopAnimating();
        }
Пример #2
0
 public BookListStateFactory(UIView mainView,
                             UITableView tableView,
                             BookListEmptyView emptyView,
                             UIActivityIndicatorView activityIndicator,
                             UIRefreshControl refreshControl)
 {
     this.emptyView         = emptyView;
     this.mainView          = mainView;
     this.tableView         = tableView;
     this.activityIndicator = activityIndicator;
     this.refreshControl    = refreshControl;
 }
Пример #3
0
        void SetupDesign()
        {
            Title       = viewModel.Title;
            tableSource = new BookListTableSource(viewModel)
            {
                selectionDelegate = NavigaeteToBookDetails,
                editingDelegate   = OnEditing,
                deletingDelegate  = OnDeleting
            };
            emptyView = null;
            activityIndicator.HidesWhenStopped = true;

            tableView.Hidden = true;
            tableView.RegisterNibForCellReuse(BookListTableViewCell.Nib, BookListTableViewCell.Key);
            tableView.EstimatedRowHeight = kEstimatedCellHeight;
            tableView.Source             = tableSource;
        }