Ejemplo n.º 1
0
        public FullScreenAdapter(PresenterModel model, ContainerControl control)
        {
            this.m_Model   = model;
            this.m_Control = control;

            this.m_EventQueue = new ControlEventQueue(this.m_Control);
            this.m_FullScreenChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleFullScreenChanged));
            this.m_RoleChangedDispatcher       = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleRoleChanged));

            this.m_Model.ViewerState.Changed["PrimaryMonitorFullScreen"].Add(this.m_FullScreenChangedDispatcher.Dispatcher);
            this.m_FullScreenChangedDispatcher.Dispatcher(this, null);

            this.m_Model.Participant.Changed["Role"].Add(this.m_RoleChangedDispatcher.Dispatcher);
            this.m_RoleChangedDispatcher.Dispatcher(this, null);
            this.m_FullScreenButtons = new FullScreenButtons(this.m_Model, this.m_EventQueue);
            //this.m_FullScreenToolBar.Dock = DockStyle.Top;
        }
Ejemplo n.º 2
0
        public FullScreenAdapter(PresenterModel model, ContainerControl control)
        {
            this.m_Model = model;
            this.m_Control = control;

            this.m_EventQueue = new ControlEventQueue(this.m_Control);
            this.m_FullScreenChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleFullScreenChanged));
            this.m_RoleChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleRoleChanged));

            this.m_Model.ViewerState.Changed["PrimaryMonitorFullScreen"].Add(this.m_FullScreenChangedDispatcher.Dispatcher);
            this.m_FullScreenChangedDispatcher.Dispatcher(this, null);

            this.m_Model.Participant.Changed["Role"].Add(this.m_RoleChangedDispatcher.Dispatcher);
            this.m_RoleChangedDispatcher.Dispatcher(this, null);
            this.m_FullScreenButtons = new FullScreenButtons(this.m_Model, this.m_EventQueue);
            //this.m_FullScreenToolBar.Dock = DockStyle.Top;
        }