public static string GetFileLink(FileLinkBuilder fileLinkBuilder, string fileManager, string fieldName)
 {
     if (fileLinkBuilder == null)
     {
         return(null);
     }
     return(fileLinkBuilder.GetFileUrl(fileManager, fieldName));
 }
 public static void RenderFileLink(StringBuilder sb, FileLinkBuilder fileLinkBuilder, string fileManager, string fieldName)
 {
     if (fileLinkBuilder == null)
     {
         return;
     }
     RenderFileLink(sb, fileLinkBuilder.FileName, fileLinkBuilder.GetFileUrl(fileManager, fieldName));
 }
 protected override void Render(HtmlTextWriter writer)
 {
     if (!Enabled)
     {
         return;
     }
     if (FileLinkBuilder != null && string.IsNullOrEmpty(NavigateUrl))
     {
         NavigateUrl = FileLinkBuilder.GetFileUrl(FileManager, FieldName);
     }
     RenderFileLink(writer, FileLinkBuilder == null ? FileName : FileLinkBuilder.FileName, NavigateUrl);
 }
 public SerializeInfo(string fileName, string navigateUrl, FileLinkBuilder fileLinkBuilder)
 {
     FileName        = fileName;
     NavigateUrl     = navigateUrl;
     FileLinkBuilder = fileLinkBuilder;
 }