Esempio n. 1
0
        // Token: 0x06002DA3 RID: 11683 RVA: 0x001023F4 File Offset: 0x001005F4
        private void SetEmailPropertyValue(Contact contact, ContactPropertyInfo propertyInfo)
        {
            ContactPropertyInfo emailDisplayAsProperty = ContactUtilities.GetEmailDisplayAsProperty(propertyInfo);
            EmailAddressIndex   emailPropertyIndex     = ContactUtilities.GetEmailPropertyIndex(propertyInfo);
            string email       = (string)base.GetParameter(propertyInfo.Id);
            string displayName = (string)base.GetParameter(emailDisplayAsProperty.Id);

            ContactUtilities.SetContactEmailAddress(contact, emailPropertyIndex, email, displayName);
        }
Esempio n. 2
0
        // Token: 0x060027F2 RID: 10226 RVA: 0x000E2358 File Offset: 0x000E0558
        protected void RenderEmailProperties()
        {
            EmailDropDownList emailDropDownList = new EmailDropDownList("divEM", this.firstEmailProperty);

            base.Response.Write("<div class=\"cntLabelCombo\">");
            emailDropDownList.Render(base.Response.Output);
            base.Response.Write("</div><div class=\"cntField\">");
            string[] array = new string[ContactUtilities.EmailAddressProperties.Length];
            for (int i = 0; i < ContactUtilities.EmailAddressProperties.Length; i++)
            {
                string text = null;
                string s    = null;
                ContactPropertyInfo contactPropertyInfo = ContactUtilities.EmailAddressProperties[i];
                this.GetEmailAddressValue(contactPropertyInfo, out text, out s);
                array[i] = text;
                base.Response.Write("<input id=\"");
                base.Response.Write(contactPropertyInfo.Id);
                base.Response.Write("\"");
                if (contactPropertyInfo != this.firstEmailProperty)
                {
                    base.Response.Write(" style=\"display:none\"");
                }
                ContactPropertyInfo emailDisplayAsProperty = ContactUtilities.GetEmailDisplayAsProperty(contactPropertyInfo);
                base.Response.Write(" maxlength=\"256\" class=\"cntWell\" type=\"text\" value=\"");
                Utilities.HtmlEncode(s, base.Response.Output);
                base.Response.Write("\" _da=\"");
                base.Response.Write(emailDisplayAsProperty.Id);
                base.Response.Write("\">");
            }
            base.Response.Write("</div>");
            base.Response.Write("<div class=\"cntLabel\">");
            base.Response.Write(LocalizedStrings.GetHtmlEncoded(1019177604));
            base.Response.Write("</div><div class=\"cntField\">");
            for (int j = 0; j < ContactUtilities.EmailAddressProperties.Length; j++)
            {
                ContactPropertyInfo contactPropertyInfo2 = ContactUtilities.EmailAddressProperties[j];
                string s2 = array[j];
                base.Response.Write("<input id=\"");
                base.Response.Write(ContactUtilities.GetEmailDisplayAsProperty(contactPropertyInfo2).Id);
                base.Response.Write("\"");
                if (contactPropertyInfo2 != this.firstEmailProperty)
                {
                    base.Response.Write(" style=\"display:none\"");
                }
                base.Response.Write(" maxlength=\"256\" class=\"cntWell\" type=\"text\" value=\"");
                Utilities.HtmlEncode(s2, base.Response.Output);
                base.Response.Write("\">");
            }
            base.Response.Write("</div>");
        }
Esempio n. 3
0
        private void SetEmail(ContactPropertyInfo propertyInfo)
        {
            ContactPropertyInfo emailDisplayAsProperty = ContactUtilities.GetEmailDisplayAsProperty(propertyInfo);
            string            text  = this.GetFormParameterStringValue(propertyInfo.Id);
            string            text2 = this.GetFormParameterStringValue(emailDisplayAsProperty.Id);
            EmailAddressIndex emailPropertyIndex = ContactUtilities.GetEmailPropertyIndex(propertyInfo);

            if (Utilities.WhiteSpaceOnlyOrNullEmpty(text))
            {
                text = null;
            }
            if (Utilities.WhiteSpaceOnlyOrNullEmpty(text2))
            {
                text2 = null;
            }
            ContactUtilities.SetContactEmailAddress(this.Contact, emailPropertyIndex, text, text2);
        }