public IEnumerator ApplyFilter(System.Func <Place, bool> filter) { // Waiting data load complete yield return(PlacementDataSource.WaitingDataReady()); // Load data to list this.currentData = PlacementDataSource.GetPlacesCollectionWithFilter(filter); Scroll.ApplyDataTo(currentData.Places.Length, 0, InfiniteScroll.Direction.Bottom); }
IEnumerator _LoadFromDataSource() { // Waiting data load complete yield return(PlacementDataSource.WaitingDataReady()); // Load data to list this.currentData = PlacementDataSource.GetPlacesCollection(); Scroll.InitData(currentData.Places.Length); }