Ejemplo n.º 1
0
        // *** Constructors ***

        public IncrementalLoadingDataList(IDataListSource <T> dataListSource)
        {
            // Validate the parameters

            if (dataListSource == null)
            {
                throw new ArgumentNullException("dataListSource");
            }

            // Set the fields

            this.dataListSource = dataListSource;
        }
Ejemplo n.º 2
0
        public static IDataListSource <TSource> Skip <TSource>(this IDataListSource <TSource> source, int count)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            if (count < 0)
            {
                throw new ArgumentOutOfRangeException("count", ResourceHelper.GetErrorResource("Exception_ArgumentOutOfRange_ParameterMustBeZeroOrPositive"));
            }

            return(new DataListSource_Skip <TSource>(source, count));
        }
Ejemplo n.º 3
0
        // *** Constructors ***

        public VirtualizingDataList(IDataListSource <T> dataListSource)
        {
            // Validate the parameters

            if (dataListSource == null)
            {
                throw new ArgumentNullException("dataListSource");
            }

            // Set the fields and subscribe for collection updates

            this.dataListSource = dataListSource;
            dataListSource.Subscribe(this);
        }
Ejemplo n.º 4
0
        // *** Constructors ***

        public DataListSourceOperatorBase(IDataListSource <T> source)
        {
            this.source = source;
        }
Ejemplo n.º 5
0
        // *** Constructors ***

        public DataListSource_Skip(IDataListSource <T> source, int count) : base(source)
        {
            this.count = count;
        }