public override void ViewDidLoad() { base.ViewDidLoad(); var hotDogs = dataService.GetAllHotDogs(); var datasource = new HotDogDataSources <HotDogTableViewController>(hotDogs, this); TableView.Source = datasource; this.NavigationItem.Title = "RAy's Hot Dog menu"; }
public async override void ViewDidLoad() { base.ViewDidLoad(); var favoritesHotDog = dataService.GetHotDogsFromGroup(2); var datasource = new HotDogDataSources <MeatLoversTableViewController>(favoritesHotDog, this); TableView.Source = datasource; this.NavigationItem.Title = "RAy's Meat Lovers"; }
public async override void ViewDidLoad() { base.ViewDidLoad(); var favoritesHotDog = dataService.GetFavoriteHotDogs(); var datasource = new HotDogDataSources <FavoriteTableViewController>(favoritesHotDog, this); TableView.Source = datasource; this.NavigationItem.Title = "RAy's FAvorite"; }