예제 #1
0
        public override void ViewDidLoad()
        {
            var hotDogs = this.hotDogDataService.GetAllHotDogs();
            HotDogDataSource dataSource = new HotDogDataSource(hotDogs, this);

            this.TableView.Source     = dataSource;
            this.NavigationItem.Title = "Ray's Hot Dog Menu";
        }
예제 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var hotDogs    = dataService.GetAllHotDogs();
            var datasource = new HotDogDataSource(hotDogs, this);

            TableView.Source = datasource;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var meatLovers = dataService.GetHotDogsForGroup(1);
            var datasource = new HotDogDataSource(meatLovers, this);

            TableView.Source = datasource;

            this.ParentViewController.NavigationItem.Title = "Meat Lovers";
        }