예제 #1
0
        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();
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void DoProcessData(BaseSyncClass syncData)
 {
     QueuedBackgroundWorker.QueueWorkItem(m_qeue, syncData, DoWorkQeued, argsend => WorkCompleted(argsend), argProg => WorkProgress(argProg));
 }