Beispiel #1
0
        void Req_Completed(SalonVeSeans.RootObject data)
        {
            SalonVeSeanslar = data;

            List<Theatre> NoSeance_ToBeRemoved = new List<Theatre>();
            foreach (var theater in SalonVeSeanslar.theatre)
            {
                theater.allseances = new List<string>();
                foreach (var item in theater.seances)
                {
                    if (!(item is string))
                    {
                        foreach (string seanceInfo in ((Newtonsoft.Json.Linq.JArray)item).Values<string>())
                        {
                            theater.allseances.Add(seanceInfo);
                        }
                    }
                    else
                    {
                        NoSeance_ToBeRemoved.Add(theater);
                    }
                }
            }
            foreach (var Remove in NoSeance_ToBeRemoved)
            {
                SalonVeSeanslar.theatre.Remove(Remove);
            }

            if (getCompleted != null)
            {
                getCompleted(this);
            }
        }
Beispiel #2
0
        void NearestCinema_Req_Completed(SalonVeSeans.NearestCinema_RootObject data)
        {
            EnYakinSalon = data;

            GetRequest<RootObject> Req = new GetRequest<RootObject>();
            Req.Completed += Req_Completed;
            Req.Download(APIuris.SalonlarVeSeanslar_byCity_byMovieID, data.cinema.cityId, filmID);
        }
Beispiel #3
0
 void yakinSeanslar_getCompleted(SalonVeSeans sender)
 {
     listSalonlar.ItemsSource = sender.SalonVeSeanslar.theatre;
     gpsLoader.IsIndeterminate = false;
     gpsLoader.Visibility = System.Windows.Visibility.Collapsed;
 }
Beispiel #4
0
 void geoWatch_PositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e)
 {
     SalonVeSeans yakinSeanslar = new SalonVeSeans();
     yakinSeanslar.getCompleted += yakinSeanslar_getCompleted;
     yakinSeanslar.get(e.Position.Location.Latitude, e.Position.Location.Longitude, MovieID);
 }