private void LlenarSlideInfo(
     SlideItem item,
     ref TextBox txtImageUrl,
     ref TextBox txtImageAlt,
     ref TextBox txtLinkUrl,
     ref TextBox txtFootTitle,
     ref TextBox txtFootText,
     ref TextBox txtFootUrl
     )
 {
     txtImageUrl.Text = item.ImageUrl;
     txtImageAlt.Text = item.ImageAlt;
     txtLinkUrl.Text = item.LinkUrl;
     txtFootTitle.Text = item.FootTitle;
     txtFootText.Text = item.FootText;
     txtFootUrl.Text = item.FootUrl;
 }
Esempio n. 2
0
 private void RenderSlide(HtmlTextWriter writer, SlideItem slide, bool active)
 {
     string strActive = active ? " class='active'" : string.Empty;
     writer.WriteLine("<div {0}><img src='{1}' alt='{2}' /><div><h1>{3}</h1><a href='{4}'>{5}</a></div></div>", strActive, slide.ImageUrl, slide.ImageAlt, slide.FootTitle, slide.FootUrl, slide.FootText);
 }
        private SlideItem GetSlideItem(
            TextBox txtImageUrl,
            TextBox txtImageAlt,
            TextBox txtLinkUrl,
            TextBox txtFootTitle,
            TextBox txtFootText,
            TextBox txtFootUrl
            )
        {
            SlideItem ret = null;

            if (!string.IsNullOrWhiteSpace(txtImageUrl.Text))
            {
                ret = new SlideItem(txtImageUrl.Text, txtImageAlt.Text, txtLinkUrl.Text, txtFootTitle.Text, txtFootText.Text, txtFootUrl.Text);
            }

            return ret;
        }