public async Task CallJBGoogleCalendarAsync () { var jbges = new JailBreakGoogleEventsService(); var gba = await jbges.GetJBEventsAsync(); while (i < gba.items.Count) { DateTime checkVal = Convert.ToDateTime (gba.items [i].start.date); if (checkVal >= DateTime.Now.Subtract(TimeSpan.FromDays(1))) { currandfut.Add(gba.items[i]); } i++; } lv.ItemsSource = currandfut.OrderBy(o=>o.start.date).ToList();; }
public async Task CallJBGoogleCalendarAsync() { var jbges = new JailBreakGoogleEventsService(); var gba = await jbges.GetJBEventsAsync(); while (i < gba.items.Count) { DateTime checkVal = Convert.ToDateTime(gba.items [i].start.date); if (checkVal >= DateTime.Now.Subtract(TimeSpan.FromDays(1))) { currandfut.Add(gba.items[i]); } i++; } lv.ItemsSource = currandfut.OrderBy(o => o.start.date).ToList();; }