public override void UpdateDesign() { tableView.Hidden = true; emptyView = BookListEmptyView.Create(); emptyView.Frame = mainView.Frame; mainView.AddSubview(emptyView); activityIndicator.StopAnimating(); }
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; }
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; }