コード例 #1
0
        protected string SerializeValue(EPiImagePropertyData value)
        {
            var data = value;

            if (data != null && !String.IsNullOrEmpty(data.ImageUrl))
            {
                //Add <a href="{string}"></a> around string to trigger error message when deleting image
                if (!String.IsNullOrEmpty(data.ImageDescription))
                {
                    return(ImgStart + ToMappedLink(data.ImageUrl) + "?alt=" + data.ImageDescription + ImgEnd);
                }
                else
                {
                    return(ImgStart + ToMappedLink(data.ImageUrl) + ImgEnd);
                }
            }
            return(String.Empty);
        }
コード例 #2
0
 protected string SerializeValue(EPiImagePropertyData value)
 {
     var data = value;
     if (data != null && !String.IsNullOrEmpty(data.ImageUrl))
     {
         //Add <a href="{string}"></a> around string to trigger error message when deleting image
         if (!String.IsNullOrEmpty(data.ImageDescription))
             return ImgStart + ToMappedLink(data.ImageUrl) + "?alt=" + data.ImageDescription + ImgEnd;
         else
             return ImgStart + ToMappedLink(data.ImageUrl) + ImgEnd;
     }
     return String.Empty;
 }