Esempio n. 1
0
        private int?GetContactPropertyIntValue(ContactPropertyInfo propertyInfo)
        {
            if (propertyInfo == ContactUtilities.FileAsId)
            {
                return(new int?((int)ContactUtilities.GetFileAs(this.Contact)));
            }
            object obj = this.Contact.TryGetProperty(propertyInfo.PropertyDefinition);

            if (obj != null && obj is int)
            {
                return(new int?((int)obj));
            }
            return(null);
        }
Esempio n. 2
0
        protected void RenderFileAs()
        {
            base.Response.Write("<tr><td class=\"cntPT\">");
            base.Response.Write(LocalizedStrings.GetHtmlEncoded(ContactUtilities.FileAsId.Label));
            base.Response.Write("</td><td class=\"cntPV\"><select name=\"");
            base.Response.Write(ContactUtilities.FileAsId.Id);
            base.Response.Write("\" class=\"cntDD cntCB\">");
            FileAsMapping fileAs = ContactUtilities.GetFileAs(base.Item);

            foreach (FileAsMapping fileAsMapping in ContactUtilities.GetSupportedFileAsMappings())
            {
                int num = (int)fileAsMapping;
                this.RenderListItem(num.ToString(), ContactUtilities.GetFileAsString(fileAsMapping), fileAsMapping == fileAs);
            }
            base.Response.Write("</select></td></tr>");
        }
Esempio n. 3
0
        // Token: 0x060027EE RID: 10222 RVA: 0x000E213C File Offset: 0x000E033C
        protected void RenderFileAs()
        {
            FileAsDropDownList dropDown = new FileAsDropDownList("divFA", ContactUtilities.GetFileAs(base.Item));

            this.RenderLabelAndDropDown(LocalizedStrings.GetHtmlEncoded(ContactUtilities.FileAsId.Label), dropDown);
        }