public SlideRenderer(SlideDisplayModel display, string sheetsCollectionTag)
        {
            this.m_SlideDisplay = display;
            this.m_SheetsCollectionTag = sheetsCollectionTag;
            this.m_SheetRenderers = new SheetRenderersCollection();

            this.m_SlideChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_SlideDisplay.EventQueue, new PropertyEventHandler(this.HandleSlideChanged));
            this.m_SheetDispositionChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_SlideDisplay.EventQueue, new PropertyEventHandler(this.HandleSheetDispositionChanged));

            this.m_SlideDisplay.Changed["Slide"].Add(this.m_SlideChangedDispatcher.Dispatcher);
            this.m_SlideDisplay.Changed["SheetDisposition"].Add(this.m_SheetDispositionChangedDispatcher.Dispatcher);
        }
Esempio n. 2
0
        public SlideRenderer(SlideDisplayModel display, string sheetsCollectionTag)
        {
            this.m_SlideDisplay        = display;
            this.m_SheetsCollectionTag = sheetsCollectionTag;
            this.m_SheetRenderers      = new SheetRenderersCollection();

            this.m_SlideChangedDispatcher            = new EventQueue.PropertyEventDispatcher(this.m_SlideDisplay.EventQueue, new PropertyEventHandler(this.HandleSlideChanged));
            this.m_SheetDispositionChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_SlideDisplay.EventQueue, new PropertyEventHandler(this.HandleSheetDispositionChanged));

            this.m_SlideDisplay.Changed["Slide"].Add(this.m_SlideChangedDispatcher.Dispatcher);
            this.m_SlideDisplay.Changed["SheetDisposition"].Add(this.m_SheetDispositionChangedDispatcher.Dispatcher);
        }