private void SetupRequest(string collectionId)
 {
     Session.LocalSpace.GetAll("Frame", typeof(int), typeof(FramePayload));
     _lastCollection = collectionId;
     SlideShower.NewCollection(NumberOfPages);
     foreach (var page in Enumerable.Range(1, NumberOfPages))
     {
         Space.Put("FramePayloadRequest", collectionId, Session.Username, page);
     }
 }
Ejemplo n.º 2
0
        private void AssumeControl()
        {
            var tuple = ConcealedSpace.Get("ControlLock", typeof(string), typeof(int));

            CollectionIdentifier  = tuple.Get <string>(1);
            NumberOfPages         = tuple.Get <int>(2);
            _controlling          = true;
            SlideShower.InControl = true;
            SlideShower.NewCollection(NumberOfPages);
        }
Ejemplo n.º 3
0
        private void SetupSlides(IEnumerable <byte[]> imageBitstreams)
        {
            FlushFrames();
            CollectionIdentifier = Guid.NewGuid().ToString();
            ConcealedSpace.Put("ControlLock", CollectionIdentifier, imageBitstreams.Count());
            ConcealedSpace.Put("ActiveCollection", CollectionIdentifier, imageBitstreams.Count());
            SlideShower.NewCollection(imageBitstreams.Count());
            var i = 1;

            foreach (var bs in imageBitstreams)
            {
                ConcealedSpace.Put("Frame", i, new FramePayload {
                    PageNumber = i++, Bitstream = bs
                });
            }
            Running = true;
        }