コード例 #1
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            bdd = new gstBDD();
            txtBlockNomCine.Text   = "Pour le cinéma " + cinema.nomCine;
            gvFilms.ItemsSource    = bdd.getListFilmsByIdCinema(cinema.codeCine);
            txtBlockAdresse.Text   = "Adresse : " + cinema.adresseCine;
            txtBlockLatitude.Text  = "Latitude : " + cinema.latitudeCine.ToString();
            txtBlockLongitude.Text = "Longitude : " + cinema.longitudeCine.ToString();
            BasicGeoposition snPosition = new BasicGeoposition {
                Latitude = cinema.latitudeCine, Longitude = cinema.longitudeCine
            };
            Geopoint snPoint = new Geopoint(snPosition);

            var MyLandmarks     = new List <MapElement>();
            var spaceNeedleIcon = new MapIcon
            {
                Location = snPoint,
                NormalizedAnchorPoint = new Point(0.5, 1.0),
                ZIndex = 0,
                Title  = cinema.nomCine
            };

            MyLandmarks.Add(spaceNeedleIcon);
            var LandmarksLayer = new MapElementsLayer
            {
                ZIndex      = 1,
                MapElements = MyLandmarks
            };

            map.Layers.Add(LandmarksLayer);
            map.Center    = snPoint;
            map.ZoomLevel = 18;
        }
コード例 #2
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     bdd = new gstBDD();
     gvCinema.ItemsSource = bdd.getListCinema();
 }