/// <summary>
        /// Constructs all of the child buttons belonging to this class
        /// </summary>
        /// <param name="parent">The parent ToolStrip to place the buttons in</param>
        /// <param name="dispatcher">The event queue to use for events</param>
        public void MakeButtons(ToolStrip parent, ControlEventQueue dispatcher)
        {
            NavigationToolBarButton back, forward, linked, whiteboard;

            // Create the back button
            back = new BackwardNavigationToolBarButton( dispatcher, this.m_Model );
            back.Image = UW.ClassroomPresenter.Properties.Resources.left;
            back.AutoSize = true;

            // Create the forward button
            forward = new ForwardNavigationToolBarButton( dispatcher, this.m_Model );
            forward.Image = UW.ClassroomPresenter.Properties.Resources.right;
            forward.AutoSize = true;

            // Create the whiteboard button
            whiteboard = new WhiteboardToolBarButton( dispatcher, this.m_Model );
            whiteboard.Image = UW.ClassroomPresenter.Properties.Resources.whiteboard;
            whiteboard.AutoSize = true;

            // Create the linked button
            linked = new LinkedNavigationToolBarButton( dispatcher, this.m_Model );
            linked.Image = UW.ClassroomPresenter.Properties.Resources.linked;
            linked.AutoSize = true;

            // Add the buttons to the parent ToolStrip

            parent.Items.Add( linked );
            //If we are not in student mode, then linked wasn't drawn, and we don't want to add this ToolStripSeparator.

            parent.Items.Add(new ToolStripSeparator());

            parent.Items.Add( whiteboard );
            parent.Items.Add(new ToolStripSeparator());
            parent.Items.Add(back);
            parent.Items.Add(forward);
        }
示例#2
0
        /// <summary>
        /// Constructs all of the child buttons belonging to this class
        /// </summary>
        /// <param name="parent">The parent ToolStrip to place the buttons in</param>
        /// <param name="dispatcher">The event queue to use for events</param>
        public void MakeButtons(ToolStrip parent, ControlEventQueue dispatcher)
        {
            NavigationToolBarButton back, forward, linked, whiteboard;

            // Create the back button
            back          = new BackwardNavigationToolBarButton(dispatcher, this.m_Model);
            back.Image    = UW.ClassroomPresenter.Properties.Resources.left;
            back.AutoSize = true;

            // Create the forward button
            forward          = new ForwardNavigationToolBarButton(dispatcher, this.m_Model);
            forward.Image    = UW.ClassroomPresenter.Properties.Resources.right;
            forward.AutoSize = true;

            // Create the whiteboard button
            whiteboard          = new WhiteboardToolBarButton(dispatcher, this.m_Model);
            whiteboard.Image    = UW.ClassroomPresenter.Properties.Resources.whiteboard;
            whiteboard.AutoSize = true;

            // Create the linked button
            linked          = new LinkedNavigationToolBarButton(dispatcher, this.m_Model);
            linked.Image    = UW.ClassroomPresenter.Properties.Resources.linked;
            linked.AutoSize = true;

            // Add the buttons to the parent ToolStrip

            parent.Items.Add(linked);
            //If we are not in student mode, then linked wasn't drawn, and we don't want to add this ToolStripSeparator.

            parent.Items.Add(new ToolStripSeparator());

            parent.Items.Add(whiteboard);
            parent.Items.Add(new ToolStripSeparator());
            parent.Items.Add(back);
            parent.Items.Add(forward);
        }