internal void GenerateSource() { int busCount = 0; for (int i = 0; i < Gates.Count(); i++) { var record = new DepartureInfo(); record.Name = Buses[busCount]; record.RouteName = Routes[i]; record.Gate = Gates[i]; record.DepartureTime = DateTime.Now.AddHours(i % 2 == 0 ? 1.5:2); record.Icon = ImageSource.FromResource("FilterListView.Images." + "Bus" + busCount + ".png"); SecondLVCollection.Add(record); if (busCount == 4) { busCount = 0; } else { busCount++; } } ItemTapCommand = new Command <Syncfusion.ListView.XForms.ItemTappedEventArgs>(ItemTapped); FavoriteTapCommand = new Command <object>(FavoriteTapped); ResetTapCommand = new Command <object>(ResetTapped); }