public void UpdateDisplay()
        {
            if (introSlide.Content != Resource.DEFAULT_INPUTFIELD_TEXT)
            {
                SlideContent.Text = introSlide.Content;
            }
            else
            {
                SlideContent.Text = string.Empty;
            }

            if (introSlide.SubTitle != Resource.DEFAULT_INPUTFIELD_TEXT)
            {
                SubTitle.Text = introSlide.SubTitle;
            }
            else
            {
                SubTitle.Text = string.Empty;
            }

            SlideContent.FontSize = introSlide.ContentFontSize;

            SlideContent.Foreground = new SolidColorBrush(presentation.Style.TitleColor);
            SubTitle.Foreground     = new SolidColorBrush(presentation.Style.TextColor);

            //Set Slide Image
            if (string.IsNullOrEmpty(introSlide.Image) == false)
            {
                SlideImage.Source = presentation.GetImage(introSlide.Image);
            }
        }
示例#2
0
 public void UpdateEditor()
 {
     //Set Slide Image
     if (string.IsNullOrEmpty(slide.Image) == false)
     {
         SlideImage.Source = presentation.GetImage(slide.Image);
     }
 }
示例#3
0
        public void UpdateEditor()
        {
            SlideContent.Text     = endSlide.Content;
            SlideContent.FontSize = endSlide.ContentFontSize;

            SlideContent.Foreground = new SolidColorBrush(presentation.Style.TitleColor);

            //Set Slide Image
            if (string.IsNullOrEmpty(endSlide.Image) == false)
            {
                SlideImage.Source = presentation.GetImage(endSlide.Image);
            }
        }
        public void UpdateDisplay()
        {
            if (questionSlide.Content != Resource.DEFAULT_INPUTFIELD_TEXT)
            {
                SlideContent.Text = questionSlide.Content;
            }
            else
            {
                SlideContent.Text = string.Empty;
            }

            SlideContent.FontSize = questionSlide.ContentFontSize;

            SlideContent.Foreground = new SolidColorBrush(presentation.Style.TextColor);

            //Set Slide Image
            if (string.IsNullOrEmpty(questionSlide.Image) == false)
            {
                SlideImage.Source = presentation.GetImage(questionSlide.Image);
            }

            Resource.QuestionAudioPlayer.PlayOnce();
        }