Exemplo n.º 1
0
        public void Add(ImageItem image)
        {
            var temp  = Template.Replace("{0}", image.Image);
            var temp2 = temp.Replace("{1}", image.Thumb);
            var temp3 = temp2.Replace("{2}", image.Title);
            var temp4 = temp3.Replace("{3}", image.Description);
            var temp5 = temp4.Replace("{4}", image.Link);

            if (FirstAdd)
            {
                Builder.Append(temp5);
                FirstAdd = false;
            }
            else
            {
                Builder.Append("," + temp5);
            }
        }
        public void Add(ImageItem image)
        {
            var temp = Template.Replace("{0}", image.Image);
            var temp2 = temp.Replace("{1}", image.Thumb);
            var temp3 = temp2.Replace("{2}", image.Title);
            var temp4 = temp3.Replace("{3}", image.Description);
            var temp5 = temp4.Replace("{4}", image.Link);

            if (FirstAdd)
            {
                Builder.Append(temp5);
                FirstAdd = false;
            }
            else
            {
                Builder.Append("," + temp5);
            }
        }