Example #1
0
 public static void RenderAttachmentWell(TextWriter output, AttachmentWellType wellType, ArrayList attachmentList, string itemId, UserContext userContext, AttachmentWell.AttachmentWellFlags flags)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     if (itemId == null)
     {
         throw new ArgumentNullException("itemId");
     }
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     if (wellType == AttachmentWellType.ReadOnly && AttachmentUtility.IsLevelOneAndBlockOnly(attachmentList))
     {
         return;
     }
     output.Write("<div id=\"divAtt\" class=\"aw\">");
     AttachmentWell.RenderAttachments(output, wellType, attachmentList, itemId, userContext, flags);
     output.Write("</div>");
 }