public AssignPriorities() { InitializeComponent(); VM_CollectionChangedWithInvoke = Program.ProgramInvokeHandler(VM_CollectionChanged); haNtolIndicator.UpdateInProgressChanged += haNtolIndicator_UpdateInProgressChanged; nudStartDelay.Maximum = long.MaxValue; nudOrder.Maximum = long.MaxValue; m_worker = new QueuedBackgroundWorker(); }
public VirtualList(IVirtualListLoader <T> loader, int pageSize, SynchronizationContext synchronizationContext) { if (loader == null) { throw new ArgumentNullException("loader"); } if (pageSize <= 0) { throw new ArgumentOutOfRangeException("pageSize"); } _synchronizationContext = synchronizationContext; _pageRequests = new QueuedBackgroundWorker <int>(LoadPage, synchronizationContext); _pageRequests.StateChanged += new EventHandler(OnPageRequestsStateChanged); _version++; _loader = loader; _pageSize = pageSize; LoadAsync(0); }
public void DoProcessData(BaseSyncClass syncData) { QueuedBackgroundWorker.QueueWorkItem(m_qeue, syncData, DoWorkQeued, argsend => WorkCompleted(argsend), argProg => WorkProgress(argProg)); }