Esempio n. 1
0
            public static void WriteFavs()
            {
                List <string> favs = new List <string>();

                foreach (var x in SampleDataSource.GetGroup("Favorites").Items)
                {
                    favs.Add(x.UniqueId);
                }

                var settings = Windows.Storage.ApplicationData.Current.RoamingSettings;

                settings.Values["favs"] = string.Join(",", favs);
            }
Esempio n. 2
0
            public async override Task <IEnumerable <SampleDataItem> > PullDataAsync(uint count)
            {
                //return await SampleDataSource.returnPreviousN(SampleDataSource.GetGroup("XKCD").Items.Last(), SampleDataSource.GetGroup("XKCD"), (int)count);
                var l = new List <SampleDataItem>();

                l.Add(await SampleDataSource.getComicByNum(int.Parse(SampleDataSource.GetGroup("XKCD").Items.Last().UniqueId) - 1, SampleDataSource.GetGroup("XKCD")));
                return(l);
            }