public void SetContent(Salonlar.Salon MevcutSalon) { CurrentSalon = MevcutSalon; txtSalonAdi.Text = MevcutSalon.name; txtSalonTel.Text = MevcutSalon.phone; txtSalonMesafe.Text = MevcutSalon.distance; }
protected override void OnNavigatedTo(NavigationEventArgs e) { collection.Clear(); if (NavigationContext.QueryString.ContainsKey("ID")) { SingleTheater = true; Salonlar.Salon GelenSalon = new Salonlar.Salon(); GelenSalon.latitude = NavigationContext.QueryString["lat"]; GelenSalon.longitude = NavigationContext.QueryString["long"]; GelenSalon.id = NavigationContext.QueryString["ID"]; collection.Add(new GeoCoordinate(double.Parse(GelenSalon.latitude), double.Parse(GelenSalon.longitude))); myMap.SetView(new GeoCoordinate(double.Parse(GelenSalon.latitude), double.Parse(GelenSalon.longitude)), 17); Add_SalonPinPoint(GelenSalon, true); } GeoCoordinateWatcher geoWatch = new GeoCoordinateWatcher(GeoPositionAccuracy.Default); geoWatch.MovementThreshold = 500; geoWatch.PositionChanged += geoWatch_PositionChanged; geoWatch.Start(); base.OnNavigatedTo(e); }