Example #1
0
    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);
    }
Example #2
0
    IEnumerator _LoadFromDataSource()
    {
        // Waiting data load complete
        yield return(PlacementDataSource.WaitingDataReady());

        // Load data to list
        this.currentData = PlacementDataSource.GetPlacesCollection();
        Scroll.InitData(currentData.Places.Length);
    }