Esempio n. 1
0
        protected void RenderAddresses()
        {
            List <ContactPropertyInfo> addressInfo  = ContactUtilities.GetAddressInfo(PhysicalAddressType.Business);
            List <ContactPropertyInfo> addressInfo2 = ContactUtilities.GetAddressInfo(PhysicalAddressType.Home);
            List <ContactPropertyInfo> addressInfo3 = ContactUtilities.GetAddressInfo(PhysicalAddressType.Other);

            for (int i = 0; i < addressInfo.Count; i++)
            {
                if (addressInfo[i].PropertyDefinition == ContactSchema.WorkAddressStreet)
                {
                    this.RenderMultilineTextProperty(new ContactPropertyInfo[]
                    {
                        addressInfo[i],
                        addressInfo2[i],
                        addressInfo3[i]
                    });
                }
                else
                {
                    this.RenderTextProperty(new ContactPropertyInfo[]
                    {
                        addressInfo[i],
                        addressInfo2[i],
                        addressInfo3[i]
                    });
                }
            }
            this.RenderMailingAddressCheckBox();
        }
Esempio n. 2
0
        // Token: 0x060027F6 RID: 10230 RVA: 0x000E2664 File Offset: 0x000E0864
        protected void RenderAddresses()
        {
            List <ContactPropertyInfo> addressInfo = ContactUtilities.GetAddressInfo(PhysicalAddressType.Business);

            this.RenderSeparator(LocalizedStrings.GetHtmlEncoded(-765825260));
            this.RenderAddress(addressInfo, ContactSchema.WorkAddressStreet);
            this.RenderSeparator(LocalizedStrings.GetHtmlEncoded(1414246315));
            addressInfo = ContactUtilities.GetAddressInfo(PhysicalAddressType.Home);
            this.RenderAddress(addressInfo, ContactSchema.HomeStreet);
            this.RenderSeparator(LocalizedStrings.GetHtmlEncoded(-582599340));
            addressInfo = ContactUtilities.GetAddressInfo(PhysicalAddressType.Other);
            this.RenderAddress(addressInfo, ContactSchema.OtherStreet);
        }
Esempio n. 3
0
        private void RenderAddress(TextWriter writer, PhysicalAddressType type, bool isMailingAddress)
        {
            IDictionary <AddressFormatTable.AddressPart, AddressComponent> addressInfo = ContactUtilities.GetAddressInfo(base.Item, type);

            if (addressInfo.Count == 0)
            {
                return;
            }
            this.isAddressRendered = true;
            string value = string.Empty;

            switch (type)
            {
            case PhysicalAddressType.Home:
                value = LocalizedStrings.GetHtmlEncoded(1414246315);
                break;

            case PhysicalAddressType.Business:
                value = LocalizedStrings.GetHtmlEncoded(-765825260);
                break;

            case PhysicalAddressType.Other:
                value = LocalizedStrings.GetHtmlEncoded(-582599340);
                break;
            }
            if (isMailingAddress)
            {
                writer.Write("<tr><td colspan=2 class=\"hd lp\">");
                writer.Write(value);
                writer.Write(" <span class=\"brkt\">(");
                writer.Write(LocalizedStrings.GetHtmlEncoded(1912536019));
                writer.Write(")</span></td></tr>");
            }
            else
            {
                writer.Write("<tr><td colspan=2 class=\"hd lp\">");
                writer.Write(value);
                writer.Write("</td></tr>");
            }
            foreach (KeyValuePair <AddressFormatTable.AddressPart, AddressComponent> keyValuePair in addressInfo)
            {
                writer.Write("<tr><td class=\"lbl lp\">");
                writer.Write(keyValuePair.Value.Label);
                writer.Write("</td><td class=\"txvl\">");
                Utilities.HtmlEncode(keyValuePair.Value.Value, writer);
                writer.Write("</td></tr>");
            }
            writer.Write("<tr><td colspan=2 class=\"lbl lp\"><a href=\"");
            writer.Write("<tr><td class=\"spcOP\" colspan=2></td></tr>");
        }
Esempio n. 4
0
        // Token: 0x06002A86 RID: 10886 RVA: 0x000EE4C8 File Offset: 0x000EC6C8
        private void RenderAddressList()
        {
            if (string.IsNullOrEmpty(this.orgPerson.StreetAddress) && string.IsNullOrEmpty(this.orgPerson.City) && string.IsNullOrEmpty(this.orgPerson.StateOrProvince) && string.IsNullOrEmpty(this.orgPerson.PostalCode) && string.IsNullOrEmpty(this.orgPerson.CountryOrRegionDisplayName))
            {
                return;
            }
            base.Response.Write(string.Concat(new string[]
            {
                "<div class=\"row2sp\"><div class=\"secCol\"><span class=spS>",
                LocalizedStrings.GetHtmlEncoded(-1159205642),
                "</span></div><div class=bLn>(",
                LocalizedStrings.GetHtmlEncoded(1912536019),
                ")</div></div>"
            }));
            IDictionary <AddressFormatTable.AddressPart, AddressComponent> addressInfo = ContactUtilities.GetAddressInfo(this.orgPerson);

            foreach (KeyValuePair <AddressFormatTable.AddressPart, AddressComponent> keyValuePair in addressInfo)
            {
                this.RenderLabelValueRow(keyValuePair.Value.Label, keyValuePair.Value.Value, false);
            }
        }
Esempio n. 5
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>");
        }
Esempio n. 6
0
        // Token: 0x06002AAC RID: 10924 RVA: 0x000EFD68 File Offset: 0x000EDF68
        private void RenderAddress(PhysicalAddressType type, bool isSelected)
        {
            IDictionary <AddressFormatTable.AddressPart, AddressComponent> addressInfo = ContactUtilities.GetAddressInfo(base.Item, type);

            if (addressInfo.Count == 0)
            {
                return;
            }
            this.isSubsectionStarted = false;
            this.RenderSectionStart(true);
            string s    = string.Empty;
            string text = string.Empty;

            base.Response.Write("<div ");
            switch (type)
            {
            case PhysicalAddressType.Home:
                s    = LocalizedStrings.GetHtmlEncoded(1414246315);
                text = "AH";
                break;

            case PhysicalAddressType.Business:
                s    = LocalizedStrings.GetHtmlEncoded(-765825260);
                text = "AB";
                break;

            case PhysicalAddressType.Other:
                s    = LocalizedStrings.GetHtmlEncoded(-582599340);
                text = "AO";
                break;
            }
            base.Response.Write(" id=td");
            base.Response.Write(text);
            base.Response.Write(" class=\"bLn");
            if (!this.isFirstLine)
            {
                base.Response.Write(" indent");
            }
            base.Response.Write("\">");
            base.Response.Write(s);
            base.Response.Write("</div><div");
            base.Response.Write(" id=td");
            base.Response.Write(text);
            base.Response.Write("S class=\"fld bLn\">");
            if (isSelected)
            {
                base.Response.Write("<span id=spnSel class=gryTxt>");
                base.Response.Write(base.UserContext.IsRtl ? string.Empty : " ");
                base.Response.Write(base.UserContext.DirectionMark);
                base.Response.Write("(");
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(1912536019));
                base.Response.Write(")");
                base.Response.Write(base.UserContext.DirectionMark);
                base.Response.Write("</span>");
            }
            base.Response.Write("</div></div>");
            this.isFirstLine = true;
            foreach (KeyValuePair <AddressFormatTable.AddressPart, AddressComponent> keyValuePair in addressInfo)
            {
                string id = text + ((int)keyValuePair.Key).ToString();
                if (this.isFirstLine)
                {
                    this.isFirstLine = false;
                    base.Response.Write("<div class=\"clear row noindent\">");
                }
                else
                {
                    base.Response.Write("<div class=\"clear row\">");
                }
                this.RenderLabelValueAndUrl(keyValuePair.Value.Label, id, keyValuePair.Value.Value, null, false, null);
            }
        }