// Token: 0x06001E90 RID: 7824 RVA: 0x000B01A8 File Offset: 0x000AE3A8 internal static void ResolveAndRenderChunk(TextWriter writer, string chunk, ArrayList wellNodes, RecipientCache recipientCache, UserContext userContext, bool resolveAgainstContactsFirst) { RecipientWell.ResolveAndRenderChunk(writer, chunk, wellNodes, recipientCache, userContext, new AnrManager.Options { ResolveContactsFirst = resolveAgainstContactsFirst }); }
private AddressBookRecipientPicker(Strings.IDs title, RecipientWell recipientWell, params Strings.IDs?[] wellLabels) { if (recipientWell == null) { throw new ArgumentNullException("recipientWell"); } if (wellLabels.Length > 3 || wellLabels.Length == 0) { throw new ArgumentException("There must be at least 1 and no more than " + 3 + "recipientwells specified."); } this.title = title; this.recipientWell = recipientWell; this.wellLabels = new Strings.IDs?[wellLabels.Length]; for (int i = 0; i < wellLabels.Length; i++) { this.wellLabels[i] = wellLabels[i]; } }
// Token: 0x06001E97 RID: 7831 RVA: 0x000B0420 File Offset: 0x000AE620 public virtual void Render(TextWriter writer, UserContext userContext, RecipientWellType type, RecipientWell.RenderFlags flags, string id, string content, string extraStyle) { if (writer == null) { throw new ArgumentNullException("writer"); } if (userContext == null) { throw new ArgumentNullException("userContext"); } if (id == null) { throw new ArgumentNullException("id"); } bool flag = (flags & RecipientWell.RenderFlags.ReadOnly) != RecipientWell.RenderFlags.None; if (flag && !this.HasRecipients(type) && type != RecipientWellType.From) { return; } if (flags != RecipientWell.RenderFlags.Hidden) { writer.Write("<div id=divFH>M</div>"); } if (!string.IsNullOrEmpty(id)) { writer.Write("<div id=\"div{0}\"", id); } else { writer.Write("<div id=\"div{0}\"", RecipientWell.GetWellName(type)); } if ((flags & RecipientWell.RenderFlags.Hidden) != RecipientWell.RenderFlags.None) { writer.Write(" disabled"); } this.RenderAdditionalExpandos(writer); if (!flag) { writer.Write(" class=\"rwW"); writer.Write(string.IsNullOrEmpty(extraStyle) ? SanitizedHtmlString.Empty : SanitizedHtmlString.Format(" {0}", new object[] { extraStyle })); writer.Write("\" contentEditable=\"true\" "); writer.Write("spellcheck=\"false\" "); writer.Write(">"); } else { writer.Write(" class=\"rwW rwWRO\" "); writer.Write(">"); } RecipientWellNode.RenderFlags renderFlags = RecipientWellNode.RenderFlags.RenderCommas; if ((flags & RecipientWell.RenderFlags.ReadOnly) != RecipientWell.RenderFlags.None) { renderFlags |= RecipientWellNode.RenderFlags.ReadOnly; } if (content != null) { Utilities.SanitizeHtmlEncode(content, writer); } else { if (userContext.BrowserType != BrowserType.IE && this.HasRecipients(type)) { writer.Write(" "); } this.RenderContents(writer, userContext, type, renderFlags, RecipientWell.wellNodeRenderDelegate); if (userContext.BrowserType != BrowserType.IE && this.HasRecipients(type)) { writer.Write(" "); } } writer.Write("</div>"); }
// Token: 0x060024FD RID: 9469 RVA: 0x000D6596 File Offset: 0x000D4796 public PrintRecipientWell(RecipientWell delegateRecipient) { this.delegateRecipient = delegateRecipient; }