public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var asianCuisine = dataService.GetRestaurantsForGroup(2);
            var datasource   = new RestaurantDataSource(asianCuisine, this);

            TableView.Source = datasource;

            this.NavigationController.NavigationItem.Title = "Asian Cuisine";
        }
Example #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var coffeeShops = dataService.GetRestaurantsForGroup(3);

            var datasource = new RestaurantDataSource(coffeeShops, this);

            TableView.Source = datasource;

            this.NavigationController.NavigationItem.Title = "Coffee Shops";
        }
Example #3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var gastroPubs = dataService.GetRestaurantsForGroup(4);

            var datasource = new RestaurantDataSource(gastroPubs, this);

            TableView.Source = datasource;

            this.NavigationController.NavigationItem.Title = "Gastro Pubs";
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var modernIrish = dataService.GetRestaurantsForGroup(1);
            var datasource  = new RestaurantDataSource(modernIrish, this);

            TableView.RowHeight          = UITableView.AutomaticDimension;
            TableView.EstimatedRowHeight = 44;

            TableView.Source = datasource;

            this.NavigationController.NavigationItem.Title = "Modern Irish";
        }