private void SetTopicName(TopicControl topic, int number, HtmlGenericControl div)
 {
     LocalizedTopic lTopic = LocalizedTopicCollection.FirstOrDefault(t => t.ShowOnHomePage == number);
     if (lTopic != null)
     {
         topic.TopicName = lTopic.Topic.Name;
         if (number == 1)
         {
             div.Attributes.Add("style", "background: url(../../images/ff_images/mainimg_logo_big_background.gif) center center no-repeat ;");
         }
     }
     else
     {
         div.Attributes.Add("style",
                            number == 1
                                ? "background: url(../../images/ff_images/mainimg_logo_big.gif) center center no-repeat ;"
                                : "background: url(../../images/ff_images/mainimg_logo.gif) center center no-repeat ;");
     }
 }
Example #2
0
        private void SetTopicName(TopicControl topic, int number, HtmlGenericControl div)
        {
            LocalizedTopic lTopic = LocalizedTopicCollection.FirstOrDefault(t => t.ShowOnHomePage == number);

            if (lTopic != null)
            {
                topic.TopicName = lTopic.Topic.Name;
                if (number == 1)
                {
                    div.Attributes.Add("style", "background: url(../../images/ff_images/mainimg_logo_big_background.gif) center center no-repeat ;");
                }
            }
            else
            {
                div.Attributes.Add("style",
                                   number == 1
                                       ? "background: url(../../images/ff_images/mainimg_logo_big.gif) center center no-repeat ;"
                                       : "background: url(../../images/ff_images/mainimg_logo.gif) center center no-repeat ;");
            }
        }