public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); TabBarController.Title = "Publications"; noPublicationLabel.Hidden = true; TabBarController.NavigationItem.LeftBarButtonItem = new UIBarButtonItem("Edit", UIBarButtonItemStyle.Plain, OpenPublicaionSortingPanel); TabBarController.NavigationItem.RightBarButtonItems = NavigationItem.RightBarButtonItems; List <RecentHistoryItem> historyList = PublicationContentUtil.Instance.GetRecentHistory(); UIView tableView = HistoryContainerView.ViewWithTag(1); if (historyList != null && historyList.Count > 0) { tableView.Hidden = false; if (historyTVC == null) { historyTVC = new HistoryTableViewController(); historyTVC.TableView = (UITableView)tableView; } HistoryTableViewSource TableViewSource = new HistoryTableViewSource(historyTVC.TableView); TableViewSource.HistoryList = historyList; historyTVC.TableView.Source = TableViewSource; //Fix constraint warning: Detected a case where constraints ambiguously suggest a height of zero for a tableview cell's content view. We're considering the collapse unintentional and using standard height instead. historyTVC.TableView.RowHeight = 44; historyTVC.TableView.TableFooterView = new UIView(); } else { tableView.Hidden = true; } }
void ReleaseDesignerOutlets() { if (MyPublication != null) { MyPublication.Dispose(); MyPublication = null; } if (noPublicationLabel != null) { noPublicationLabel.Dispose(); noPublicationLabel = null; } if (publicationFilterSegmentControl != null) { publicationFilterSegmentControl.Dispose(); publicationFilterSegmentControl = null; } if (publicationViewScrollContainer != null) { publicationViewScrollContainer.Dispose(); publicationViewScrollContainer = null; } if (HistoryContainerView != null) { HistoryContainerView.Dispose(); HistoryContainerView = null; } }