public VirtualizingCollection(IVirtualListProvider <T> virtualListProvider, int pageSize, int pageTimeout) { _virtualListProvider = virtualListProvider; if (pageSize > 0) { _pageSize = pageSize; } if (pageTimeout > 0) { _pageTimeout = pageTimeout; } }
public AsyncVirtualizingCollection(IVirtualListProvider <T> virtualListProvider, int pageSize, int pageTimeout) : base(virtualListProvider, pageSize, pageTimeout) { _synchronizationContext = SynchronizationContext.Current; _timerReset = new System.Timers.Timer(); _timerReset.AutoReset = false; _timerReset.Interval = 5; _timerReset.Elapsed += TimerResetOnElapsed; _timerReset.Enabled = false; _timerLoadCompleted = new System.Timers.Timer(); _timerLoadCompleted.AutoReset = false; _timerLoadCompleted.Interval = 500; _timerLoadCompleted.Elapsed += TimerLoadCompletedOnElapsed; _timerLoadCompleted.Enabled = false; }
public AsyncVirtualizingCollection(IVirtualListProvider <T> virtualListProvider, int pageSize) : this(virtualListProvider, pageSize, -1) { }
public AsyncVirtualizingCollection(IVirtualListProvider <T> virtualListProvider) : this(virtualListProvider, -1, -1) { }