Ejemplo n.º 1
0
 internal PageStateHandler(Shared.StateHasChanged stateUpdater, int paginationRange, int pageSize)
 {
     Current         = 0;
     PaginationRange = paginationRange;
     PageSize        = pageSize;
     _stateUpdater   = stateUpdater;
 }
Ejemplo n.º 2
0
        public TableStateHandler(
            IEnumerable <object> data,
            Shared.StateHasChanged stateHasChanged,
            int paginationRange = 3,
            int defaultPageSize = 25
            )
        {
            _data         = data;
            _stateUpdater = stateHasChanged;

            _dataType = data.GetType().GetGenericArguments()[0];
            _props    = _dataType.GetProperties();

            Paginate = new PageStateHandler(_stateUpdater, paginationRange, defaultPageSize);
        }