/// <summary>
        /// Make all the buttons for this tool bar and add them to the bar
        /// </summary>
        /// <param name="main">The main toolbar to add the button to</param>
        /// <param name="extra">The extra toolbar to add the button to</param>
        /// <param name="dispatcher">The event queue to dispatch message onto</param>
        public void MakeButtons(ToolStrip main, ToolStrip extra, ControlEventQueue dispatcher)
        {
            ParticipantToolBarButton submit, yes, no, both, neither, a, b, c, d, e;

            submit = new SubmitStudentSubmissionToolBarButton( dispatcher, this.m_Model );
            submit.AutoSize = false;
            submit.Width = 54;
            submit.Height = 44;
            submit.Image = UW.ClassroomPresenter.Properties.Resources.submission;

            extra.Items.Add( submit );

            yes = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, Strings.QuickPollYes, "Yes");
            yes.AutoSize = false;
            yes.Width = 54;
            yes.Height = 32;

            main.Items.Add( yes );

            no = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, Strings.QuickPollNo, "No");
            no.AutoSize = false;
            no.Width = 54;
            no.Height = 32;

            main.Items.Add( no );

            both = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, Strings.QuickPollBoth, "Both");
            both.AutoSize = false;
            both.Width = 54;
            both.Height = 32;

            main.Items.Add( both );

            neither = new StudentQuickPollToolBarButton( dispatcher, this.m_Model, Strings.QuickPollNeither, "Neither" );
            neither.AutoSize = false;
            neither.Width = 54;
            neither.Height = 32;

            main.Items.Add( neither );

            a = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "A", "A");
            a.AutoSize = false;
            a.Width = 54;
            a.Height = 18;

            extra.Items.Add( a );

            b = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "B", "B");
            b.AutoSize = false;
            b.Width = 54;
            b.Height = 18;

            extra.Items.Add( b );

            c = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "C", "C");
            c.AutoSize = false;
            c.Width = 54;
            c.Height = 18;

            extra.Items.Add( c );

            d = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "D", "D");
            d.AutoSize = false;
            d.Width = 54;
            d.Height = 18;

            extra.Items.Add( d );

            e = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "E", "E");
            e.AutoSize = false;
            e.Width = 54;
            e.Height = 18;

            extra.Items.Add( e );
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Make all the buttons for this tool bar and add them to the bar
        /// </summary>
        /// <param name="main">The main toolbar to add the button to</param>
        /// <param name="extra">The extra toolbar to add the button to</param>
        /// <param name="dispatcher">The event queue to dispatch message onto</param>
        public void MakeButtons(ToolStrip main, ToolStrip extra, ControlEventQueue dispatcher)
        {
            ParticipantToolBarButton submit, yes, no, both, neither, a, b, c, d, e;

            submit          = new SubmitStudentSubmissionToolBarButton(dispatcher, this.m_Model);
            submit.AutoSize = false;
            submit.Width    = 54;
            submit.Height   = 44;
            submit.Image    = UW.ClassroomPresenter.Properties.Resources.submission;

            extra.Items.Add(submit);

            yes          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, Strings.QuickPollYes, "Yes");
            yes.AutoSize = false;
            yes.Width    = 54;
            yes.Height   = 32;

            main.Items.Add(yes);

            no          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, Strings.QuickPollNo, "No");
            no.AutoSize = false;
            no.Width    = 54;
            no.Height   = 32;

            main.Items.Add(no);

            both          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, Strings.QuickPollBoth, "Both");
            both.AutoSize = false;
            both.Width    = 54;
            both.Height   = 32;

            main.Items.Add(both);

            neither          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, Strings.QuickPollNeither, "Neither");
            neither.AutoSize = false;
            neither.Width    = 54;
            neither.Height   = 32;

            main.Items.Add(neither);

            a          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "A", "A");
            a.AutoSize = false;
            a.Width    = 54;
            a.Height   = 18;

            extra.Items.Add(a);

            b          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "B", "B");
            b.AutoSize = false;
            b.Width    = 54;
            b.Height   = 18;

            extra.Items.Add(b);

            c          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "C", "C");
            c.AutoSize = false;
            c.Width    = 54;
            c.Height   = 18;

            extra.Items.Add(c);

            d          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "D", "D");
            d.AutoSize = false;
            d.Width    = 54;
            d.Height   = 18;

            extra.Items.Add(d);

            e          = new StudentQuickPollToolBarButton(dispatcher, this.m_Model, "E", "E");
            e.AutoSize = false;
            e.Width    = 54;
            e.Height   = 18;

            extra.Items.Add(e);
        }