private void DumpScrollLayer(ArchiveRTNav.RTScrollLayer rtsl) { Debug.WriteLine("ScrollLayer: si=" + rtsl.SlideIndex.ToString() + " se=" + rtsl.ScrollExtent.ToString() + " sp=" + rtsl.ScrollPosition.ToString() + " di=" + rtsl.DeckGuid.ToString()); }
private void ReceiveScrollPosition(ArchiveRTNav.RTScrollLayer rtsl) { Int32 internalSlideIndex = slideMap.GetMapping(rtsl.SlideIndex, rtsl.DeckGuid); workQueue.SetScrollPos(internalSlideIndex, (float)rtsl.ScrollPosition, (float)rtsl.ScrollExtent); if (workQueue.StartScrolling()) { ThreadPool.QueueUserWorkItem(new WaitCallback(ScrollWorker)); } }