Beispiel #1
0
        void Seanslar_getCompleted(seanslar sender)
        {
            loader.IsIndeterminate = false;

            PanoramaRoot.Title = sender.SalonBilgisi.name;
            pItem1.DataContext = sender.SalonBilgisi;
            listFilmler.ItemsSource = sender.SalonBilgisi.movies;

            if (sender.SalonBilgisi.latitude.ToString() != "false")
            {
                SalonCoordinate = new GeoCoordinate(double.Parse(sender.SalonBilgisi.latitude), double.Parse(sender.SalonBilgisi.longitude));
                myMap.SetView(SalonCoordinate, 17);

                pinpoint_salon newPin = new pinpoint_salon();
                MapOverlay newOverlay = new MapOverlay();
                newOverlay.Content = newPin;
                newOverlay.GeoCoordinate = SalonCoordinate;
                newOverlay.PositionOrigin = new Point(0, 0);
                MapLayer MyLayer = new MapLayer();
                MyLayer.Add(newOverlay);
                myMap.Layers.Add(MyLayer);
            }
            else
            {
                myMap.Visibility = Visibility.Collapsed;
                recMap.Visibility = System.Windows.Visibility.Collapsed;
            }

        }
Beispiel #2
0
        void newPin_Selected(pinpoint_salon sender, Salonlar.Salon salon)
        {
            if (SingleTheater)
            {
                //Pinpoint transferi olmuyor MapTask'e.. :(
                //MapsTask mapT = new MapsTask();
                //mapT.Center = new GeoCoordinate()
                //mapT.Show();
            }
            else
            {
                foreach (pinpoint_salon item in AllPinPoints)
                {
                    if (item != sender)
                    {
                        item.ClearSelection();
                    }
                }
            }

        }
Beispiel #3
0
        public void Add_SalonPinPoint(Salonlar.Salon item, bool IsSingle = false)
        {
            pinpoint_salon newPin = new pinpoint_salon();
            if (IsSingle)
            {
                newPin.ShowDetails = false;
            }
            newPin.RenderTransformOrigin = new Point(0, 0);
            newPin.RenderTransform = new ScaleTransform();
            newPin.Selected += newPin_Selected;
            newPin.Redirect2Theater += newPin_Redirect2Theater;
            newPin.SetContent(item);
            MapOverlay newOverlay = new MapOverlay();
            newOverlay.Content = newPin;
            newOverlay.GeoCoordinate = new GeoCoordinate(double.Parse(item.latitude), double.Parse(item.longitude));
            newOverlay.PositionOrigin = new Point(0, 0);
            MapLayer MyLayer = new MapLayer();
            MyLayer.Add(newOverlay);
            myMap.Layers.Add(MyLayer);
            AllPinPoints.Add(newPin);

            collection.Add(newOverlay.GeoCoordinate);
        }