public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
 {
     base.PrepareForSegue(segue, sender);
     if (segue.Identifier != null && segue.Identifier.Equals("ShowExhibitDetailsSegue"))
     {
         UINavigationController navigationController = segue.DestinationViewController as UINavigationController;
         ExhibitDetailsAppetizerViewController appetizerViewController = navigationController.TopViewController as ExhibitDetailsAppetizerViewController;
         NSIndexPath             selectedIndexPath = exhibitsTableView.IndexPathForSelectedRow;
         ExhibitsTableViewSource source            = exhibitsTableView.Source as ExhibitsTableViewSource;
         ExhibitCellViewModel    exhibitViewModel  = source.Exhibits[selectedIndexPath.Row];
         appetizerViewController.ExhibitID    = exhibitViewModel.exhibitID;
         appetizerViewController.ExhibitTitle = exhibitViewModel.Name;
     }
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //map - should be switched with separate reusable map view /OSMMapView/
            MapViewDelegate mapDelegate = new MapViewDelegate();

            mapView.Delegate = mapDelegate;

            string        template = "http://tile.openstreetmap.org/{z}/{x}/{y}.png";
            MKTileOverlay overlay  = new MKTileOverlay(template);

            overlay.CanReplaceMapContent = true;
            mapView.AddOverlay(overlay, MKOverlayLevel.AboveLabels);

            // Center the map, for development purposes
            MKCoordinateRegion region = mapView.Region;

            region.Span.LatitudeDelta  = 0.05;
            region.Span.LongitudeDelta = 0.05;
            region.Center  = new CLLocationCoordinate2D(51.7166700, 8.7666700);
            mapView.Region = region;

            // Disable rotation programatically because value of designer is somehow ignored
            mapView.RotateEnabled = false;

            //tableView
            exhibitsTableView.RowHeight = 44;
            //exhibitsTableView.RegisterNibForCellReuse(UINib.FromName("ExhibitTableViewCell", null),
            //    ExhibitTableViewCell.key);

            ExhibitsTableViewSource source = new ExhibitsTableViewSource();

            source.Exhibits          = LoadExhibitsData();
            exhibitsTableView.Source = source;
        }