コード例 #1
0
        private void Vote_SlideShowEnd(Presentation Pres)
        {
            Slides slides = Pres.Slides;

            foreach (Slide slide in slides)
            {
                if (ShapesUitls.IsExistedOfShape(slide, "questionType") && slide.Shapes["questionType"].TextFrame.TextRange.Text.Equals("5"))
                {
                    ShapesUitls.ChoiceOptionNoChecked(slide);
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// 结束放映,对所有单选题幻灯片初始化
        /// </summary>
        /// <param name="Pres"></param>
        private void Choice_SlideShowEnd(Presentation Pres)
        {
            Slides slides = Pres.Slides;

            foreach (Slide slide in slides)
            {
                if (ShapesUitls.IsExistedOfShape(slide, "questionType") && slide.Shapes["questionType"].TextFrame.TextRange.Text.Equals("0") && slide.Shapes["questionType"].TextFrame.TextRange.Text.Equals("1"))
                {
                    ShapesUitls.ChoiceOptionNoChecked(slide);
                    MF.CommandButton sumbitButton = (MF.CommandButton)slide.Shapes["sumbitButton"].OLEFormat.Object;
                    sumbitButton.Enabled = true;
                    buttonClickCount     = 1;

                    MF.CommandButton answerButton = (MF.CommandButton)slide.Shapes["answerButton"].OLEFormat.Object;
                    answerButton.Enabled = true;
                }
            }
        }
コード例 #3
0
        private void Vote_SlideShowNextSlide(SlideShowWindow Wn)
        {
            Slide slide = Wn.View.Slide;

            if (ShapesUitls.IsExistedOfShape(slide, "questionType") && slide.Shapes["questionType"].TextFrame.TextRange.Text.Equals("5"))
            {
                MF.CommandButton sumbitButton = (MF.CommandButton)slide.Shapes["sumbitButton"].OLEFormat.Object;
                sumbitButton.Click           -= sumbitVote_Click;
                sumbitButton.Click           += sumbitVote_Click;
                sumbitButton.TakeFocusOnClick = false;
                sumbitButton.Enabled          = true;
                buttonClickCount = 1;

                //MF.CommandButton answerButton = (MF.CommandButton)slide.Shapes["answerButton"].OLEFormat.Object;
                //answerButton.Click -= answerSingleChocie_Click;
                //answerButton.Click += answerSingleChocie_Click;
                //answerButton.TakeFocusOnClick = false;
                //answerButton.Enabled = true;

                ShapesUitls.ChoiceOptionNoChecked(slide);
            }
        }