public void SetData(IList <GameViewModel> games) { this.TableView.Source = this.tableSource = new GameListTableSource(games) { ListType = GameListType }; this.tableSource.GameSelected += HandleGameSelected; this.TableView.ReloadData(); }
// The IntPtr and initWithCoder constructors are required for controllers that need // to be able to be created from a xib rather than from managed code public GameListTableViewController(IntPtr handle) : base(handle) { this.tableSource = new GameListTableSource(new List <GameViewModel> ()); this.NavigationItem.Title = "Games"; }