示例#1
0
 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());
 }
示例#2
0
        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));
            }
        }