예제 #1
0
        public MainToolBars(PresenterModel model, ControlEventQueue dispatcher)
        {
            this.m_Model      = model;
            this.m_EventQueue = dispatcher;

            this.m_StylusToolBarButton         = new StylusToolBarButtons(this.m_Model);
            this.m_SlideToolBarButton          = new SlideToolBarButtons(this.m_Model);
            this.m_StudentToolBarButton        = new StudentToolBarButtons(this.m_Model);
            this.m_UndoToolBarButton           = new UndoToolBarButtons(this.m_Model);
            this.m_InstructorToolBarButton     = new InstructorToolBarButtons(this.m_Model);
            this.m_DeckNavigationToolBarButton = new DeckNavigationToolBarButtons(this.m_Model);

            this.m_MainToolBar = new MainToolBar(this.m_Model, this.m_EventQueue);
            this.m_StylusToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_SlideToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_StudentToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_UndoToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_InstructorToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_DeckNavigationToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);

            this.m_MainClassmateToolBar  = new MainToolBar(this.m_Model, this.m_EventQueue);
            this.m_ExtraClassmateToolBar = new MainToolBar(this.m_Model, this.m_EventQueue);
            this.m_StylusToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_MainClassmateToolBar.Items.Add(new ToolStripSeparator());
            this.m_ExtraClassmateToolBar.Items.Add(new ToolStripSeparator());
            this.m_SlideToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_StudentToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_UndoToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_InstructorToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_DeckNavigationToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);

            this.m_MainToolBar.Dock           = DockStyle.Top;
            this.m_MainClassmateToolBar.Dock  = DockStyle.Right;
            this.m_ExtraClassmateToolBar.Dock = DockStyle.Right;

            this.m_Disposed = false;

            this.m_ToolBarModeListener = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.ToolBarModeChanged));
            this.m_Model.ViewerState.Changed["ClassmateMode"].Add(this.m_ToolBarModeListener.Dispatcher);
            this.m_ToolBarModeListener.Dispatcher(this, null);
        }
예제 #2
0
        public MainToolBars(PresenterModel model, ControlEventQueue dispatcher)
        {
            this.m_Model = model;
            this.m_EventQueue = dispatcher;

            this.m_StylusToolBarButton = new StylusToolBarButtons(this.m_Model);
            this.m_SlideToolBarButton = new SlideToolBarButtons(this.m_Model);
            this.m_StudentToolBarButton = new StudentToolBarButtons(this.m_Model);
            this.m_UndoToolBarButton = new UndoToolBarButtons(this.m_Model);
            this.m_InstructorToolBarButton = new InstructorToolBarButtons(this.m_Model);
            this.m_DeckNavigationToolBarButton = new DeckNavigationToolBarButtons(this.m_Model);

            this.m_MainToolBar = new MainToolBar(this.m_Model, this.m_EventQueue);
            this.m_StylusToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_SlideToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_StudentToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_UndoToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_InstructorToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);
            this.m_MainToolBar.Items.Add(new ToolStripSeparator());
            this.m_DeckNavigationToolBarButton.MakeButtons(this.m_MainToolBar, this.m_EventQueue);

            this.m_MainClassmateToolBar = new MainToolBar(this.m_Model, this.m_EventQueue);
            this.m_ExtraClassmateToolBar = new MainToolBar(this.m_Model, this.m_EventQueue);
            this.m_StylusToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_MainClassmateToolBar.Items.Add(new ToolStripSeparator());
            this.m_ExtraClassmateToolBar.Items.Add(new ToolStripSeparator());
            this.m_SlideToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_StudentToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_UndoToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_InstructorToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);
            this.m_DeckNavigationToolBarButton.MakeButtons(this.m_MainClassmateToolBar, this.m_ExtraClassmateToolBar, this.m_EventQueue);

            this.m_MainToolBar.Dock = DockStyle.Top;
            this.m_MainClassmateToolBar.Dock = DockStyle.Right;
            this.m_ExtraClassmateToolBar.Dock = DockStyle.Right;

            this.m_Disposed = false;

            this.m_ToolBarModeListener = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.ToolBarModeChanged));
            this.m_Model.ViewerState.Changed["ClassmateMode"].Add(this.m_ToolBarModeListener.Dispatcher);
            this.m_ToolBarModeListener.Dispatcher(this, null);
        }