async public new void OnResume()
        {
            var gameDataMarch = await DataService.GetDataForMarch2020(Resources.GetString(Resource.String.api_key));

            march2020LV.Adapter           = new March2020Adapter(this, gameDataMarch);
            march2020LV.FastScrollEnabled = true;

            march2020LV.ItemClick += (object sender, ItemClickEventArgs e) =>
            {
                var         gameDetails = gameDataMarch[e.Position];
                JanFragment janFragment = new JanFragment();
                var         intent      = new Intent(Activity, typeof(GameDetailsActivity));
                intent.PutExtra("gameDetails", JsonConvert.SerializeObject(gameDetails));
                StartActivity(intent);
            };
        }
Esempio n. 2
0
        async public new void OnResume()
        {
            var gameDataJan = await DataService.GetDataForJanuary2020(Resources.GetString(Resource.String.api_key));

            january2020LV.Adapter           = new Jan2020Adapter(this, gameDataJan);
            january2020LV.FastScrollEnabled = true;

            DateTime dt  = new DateTime();
            var      yes = dt.ToLocalTime();

            yes.ToUniversalTime();

            january2020LV.ItemClick += (object sender, ItemClickEventArgs e) =>
            {
                var         gameDetails = gameDataJan[e.Position];
                JanFragment janFragment = new JanFragment();
                var         intent      = new Intent(Activity, typeof(GameDetailsActivity));
                intent.PutExtra("gameDetails", JsonConvert.SerializeObject(gameDetails));
                StartActivity(intent);
            };
        }