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();;
		}
예제 #2
0
        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();;
        }