Esempio n. 1
0
        protected void RenderAddressBucket(TextWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            bool flag = true;

            if (string.IsNullOrEmpty(this.adOrgPerson.StreetAddress) && string.IsNullOrEmpty(this.adOrgPerson.City) && string.IsNullOrEmpty(this.adOrgPerson.StateOrProvince) && string.IsNullOrEmpty(this.adOrgPerson.PostalCode) && string.IsNullOrEmpty(this.adOrgPerson.CountryOrRegionDisplayName))
            {
                flag = false;
            }
            writer.Write("<table cellpadding=0 cellspacing=0 class=\"pAddr\">");
            if (flag)
            {
                ReadADRecipient.RenderAddressHeader(writer, -1159205642);
                IDictionary <AddressFormatTable.AddressPart, AddressComponent> addressInfo = ContactUtilities.GetAddressInfo(this.adOrgPerson);
                foreach (KeyValuePair <AddressFormatTable.AddressPart, AddressComponent> keyValuePair in addressInfo)
                {
                    ReadADOrgPerson.RenderAddressPart(writer, keyValuePair.Value.Label, keyValuePair.Value.Value);
                }
            }
            if (this.renderCustomProperties)
            {
                this.RenderCustomProperties(writer);
            }
            ReadADRecipient.RenderAddressHeader(writer, 1601836855);
            writer.Write("<tr><td colspan=2 class=\"rp\"><textarea name=\"notes\" rows=10 cols=32 readonly>");
            Utilities.HtmlEncode(this.adOrgPerson.Notes, writer);
            writer.Write("</textarea></td></tr></table>");
        }
 // Token: 0x060005D0 RID: 1488 RVA: 0x0002DA98 File Offset: 0x0002BC98
 protected void RenderAddressBucket(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.Write("<table cellpadding=0 cellspacing=0 class=\"pAddr\">");
     ReadADRecipient.RenderAddressHeader(writer, 1601836855);
     writer.Write("<tr><td class=\"rp\"><textarea name=\"notes\" rows=10 cols=32 readonly>");
     Utilities.HtmlEncode(base.ADRecipient.Notes, writer);
     writer.Write("</textarea></td></tr></table>");
 }
Esempio n. 3
0
        private void RenderCustomProperties(TextWriter writer)
        {
            bool flag = false;

            foreach (KeyValuePair <string, PropertyDefinition> keyValuePair in ADCustomPropertyParser.CustomPropertyDictionary)
            {
                string value = this.adRawEntry[keyValuePair.Value].ToString();
                if (!string.IsNullOrEmpty(value))
                {
                    if (!flag)
                    {
                        ReadADRecipient.RenderAddressHeader(writer, -582599340);
                        flag = true;
                    }
                    base.RenderDetailsLabel(writer, Utilities.HtmlEncode(keyValuePair.Key), value, null);
                }
            }
            if (flag)
            {
                writer.Write("<tr><td class=\"spcOP\" colspan=2></td></tr>");
            }
        }