コード例 #1
0
        /// <summary>
        /// Make the student submission button and linked nav button
        /// </summary>
        /// <param name="parent">The parent ToolStrip</param>
        /// <param name="dispatcher">The event queue</param>
        public void MakeButtons(ToolStrip parent, ControlEventQueue dispatcher)
        {
            ParticipantToolBarButton ss, qp, nav;

            ss = new AcceptingStudentSubmissionsToolBarButton( dispatcher, this.m_Model );
            ss.AutoSize = false;
            ss.Width = 68;
            ss.Height = 44;

            nav = new ForcingStudentNavigationLockToolBarButton(dispatcher, this.m_Model);
            nav.Image = UW.ClassroomPresenter.Properties.Resources.linked;
            nav.AutoSize = true;

            qp = new QuickPollToolBarButton( dispatcher, this.m_Model );
            nav.AutoSize = true;

            parent.Items.Add(ss);
            parent.Items.Add(qp);
            parent.Items.Add(new ToolStripSeparator());
            parent.Items.Add(nav);
        }
コード例 #2
0
        /// <summary>
        /// Make the student submission button and linked nav button
        /// </summary>
        /// <param name="parent">The parent ToolStrip</param>
        /// <param name="dispatcher">The event queue</param>
        public void MakeButtons(ToolStrip parent, ControlEventQueue dispatcher)
        {
            ParticipantToolBarButton qp, nav;

            //ParticipantToolBarButton ss
            //ss = new AcceptingStudentSubmissionsToolBarButton( dispatcher, this.m_Model );
            //ss.AutoSize = false;
            //ss.Width = 68;
            //ss.Height = 44;

            nav          = new ForcingStudentNavigationLockToolBarButton(dispatcher, this.m_Model);
            nav.Image    = UW.ClassroomPresenter.Properties.Resources.linked;
            nav.AutoSize = true;

            qp           = new QuickPollToolBarButton(dispatcher, this.m_Model);
            nav.AutoSize = true;

            //parent.Items.Add(ss);
            parent.Items.Add(qp);
            parent.Items.Add(new ToolStripSeparator());
            parent.Items.Add(nav);
        }
コード例 #3
0
        /// <summary>
        /// Make the student submission button and linked nav button
        /// </summary>
        /// <param name="main">The main ToolStrip</param>
        /// <param name="main">The extra ToolStrip</param>
        /// <param name="dispatcher">The event queue</param>
        public void MakeButtons(ToolStrip main, ToolStrip extra, ControlEventQueue dispatcher)
        {
            //ParticipantToolBarButton ss, qp, nav;
            ParticipantToolBarButton qp, nav;

            //ss = new AcceptingStudentSubmissionsToolBarButton( dispatcher, this.m_Model );
            //ss.AutoSize = false;
            //ss.Width = 54;
            //ss.Height = 44;

            nav          = new ForcingStudentNavigationLockToolBarButton(dispatcher, this.m_Model);
            nav.Image    = UW.ClassroomPresenter.Properties.Resources.linked;
            nav.AutoSize = false;
            nav.Width    = 54;
            nav.Height   = 44;

            qp = new QuickPollToolBarButton(dispatcher, this.m_Model);

            using (Synchronizer.Lock(this.m_Model.Participant.SyncRoot)) {
                if (this.m_Model.Participant.Role is InstructorModel)
                {
                    main.Items.Add(new ToolStripSeparator());
                    extra.Items.Add(new ToolStripSeparator());
                }
            }
            //main.Items.Add(ss);
            //main.Items.Add(qp);
            main.Items.Add(nav);
            using (Synchronizer.Lock(this.m_Model.Participant.SyncRoot)) {
                if (this.m_Model.Participant.Role is InstructorModel)
                {
                    main.Items.Add(new ToolStripSeparator());
                    extra.Items.Add(new ToolStripSeparator());
                }
            }

            //main.Items.Add(new ToolStripSeparator());
        }
コード例 #4
0
        /// <summary>
        /// Make the student submission button and linked nav button
        /// </summary>
        /// <param name="main">The main ToolStrip</param>
        /// <param name="main">The extra ToolStrip</param>
        /// <param name="dispatcher">The event queue</param>
        public void MakeButtons(ToolStrip main, ToolStrip extra, ControlEventQueue dispatcher)
        {
            //ParticipantToolBarButton ss, qp, nav;
            ParticipantToolBarButton qp, nav;

            //ss = new AcceptingStudentSubmissionsToolBarButton( dispatcher, this.m_Model );
            //ss.AutoSize = false;
            //ss.Width = 54;
            //ss.Height = 44;

            nav = new ForcingStudentNavigationLockToolBarButton(dispatcher, this.m_Model);
            nav.Image = UW.ClassroomPresenter.Properties.Resources.linked;
            nav.AutoSize = false;
            nav.Width = 54;
            nav.Height = 44;

            qp = new QuickPollToolBarButton( dispatcher, this.m_Model );

            using(Synchronizer.Lock(this.m_Model.Participant.SyncRoot)) {
                if(this.m_Model.Participant.Role is InstructorModel) {
                    main.Items.Add(new ToolStripSeparator());
                    extra.Items.Add(new ToolStripSeparator());
                }
            }
            //main.Items.Add(ss);
            //main.Items.Add(qp);
            main.Items.Add(nav);
            using(Synchronizer.Lock(this.m_Model.Participant.SyncRoot)) {
                if(this.m_Model.Participant.Role is InstructorModel) {
                    main.Items.Add(new ToolStripSeparator());
                    extra.Items.Add(new ToolStripSeparator());
                }
            }

            //main.Items.Add(new ToolStripSeparator());
        }