private static void RenderAttachments(TextWriter output, ArrayList attachmentList, UserContext userContext) { if (attachmentList == null) { return; } int count = attachmentList.Count; if (count <= 0) { return; } int num = 0; ArrayList previousAttachmentDisplayNames = new ArrayList(); for (int i = 0; i < count; i++) { AttachmentWellInfo attachmentInfoObject = (AttachmentWellInfo)attachmentList[i]; PrintAttachmentWell.RenderAttachment(output, attachmentInfoObject, userContext, previousAttachmentDisplayNames); if (num < count - 1) { output.Write(" ; "); } num++; } }
public static void RenderAttachmentWell(TextWriter output, ArrayList attachmentList, UserContext userContext) { if (output == null) { throw new ArgumentNullException("output"); } if (userContext == null) { throw new ArgumentNullException("userContext"); } if (attachmentList == null) { return; } output.Write("<div class=\"awRO\">"); PrintAttachmentWell.RenderAttachments(output, attachmentList, userContext); output.Write("</div>"); }