Ejemplo n.º 1
0
        protected void RenderPicture(bool showDoughboy)
        {
            if (!showDoughboy && base.UserContext.UploadedDisplayPicture != null)
            {
                RenderingUtilities.RenderDisplayPicture(base.Response.Output, base.UserContext, RenderingUtilities.GetADPictureUrl(string.Empty, string.Empty, base.UserContext, true, true), 64, true, ThemeFileId.DoughboyPerson);
                return;
            }
            string srcUrl = showDoughboy ? string.Empty : RenderingUtilities.GetADPictureUrl(base.UserContext.ExchangePrincipal.LegacyDn, "EX", base.UserContext, true);

            RenderingUtilities.RenderDisplayPicture(base.Response.Output, base.UserContext, srcUrl, 64, true, ThemeFileId.DoughboyPerson);
        }
Ejemplo n.º 2
0
        protected void RenderPresenceAndPhoto()
        {
            bool flag = this.adRecipient.RecipientType == RecipientType.Contact || this.adRecipient.RecipientType == RecipientType.UserMailbox || this.adRecipient.RecipientType == RecipientType.MailUser || this.adRecipient.RecipientType == RecipientType.User || this.adRecipient.RecipientType == RecipientType.MailContact;

            if (flag)
            {
                bool flag2 = base.UserContext.IsSenderPhotosFeatureEnabled(Feature.DisplayPhotos);
                if (base.UserContext.IsInstantMessageEnabled())
                {
                    RenderingUtilities.RenderPresenceJellyBean(base.Response.Output, base.UserContext, false, string.Empty, flag2, "RcpJb");
                }
                if (flag2)
                {
                    bool   flag3  = this.adRecipient.ThumbnailPhoto != null && this.adRecipient.ThumbnailPhoto.Length > 0;
                    bool   flag4  = string.Equals(this.adRecipient.LegacyExchangeDN, base.UserContext.ExchangePrincipal.LegacyDn, StringComparison.OrdinalIgnoreCase);
                    string srcUrl = (!flag3) ? string.Empty : RenderingUtilities.GetADPictureUrl(this.adRecipient.LegacyExchangeDN, "EX", base.UserContext, flag4);
                    RenderingUtilities.RenderDisplayPicture(base.Response.Output, base.UserContext, srcUrl, 64, flag4, flag ? ThemeFileId.DoughboyPerson : ThemeFileId.DoughboyDL);
                }
            }
        }
Ejemplo n.º 3
0
        // Token: 0x06002BF4 RID: 11252 RVA: 0x000F57AC File Offset: 0x000F39AC
        protected void RenderUserTile()
        {
            base.Response.Write("<div id=\"divUserTile\">");
            bool flag  = base.UserContext.IsSenderPhotosFeatureEnabled(Feature.SetPhoto);
            bool flag2 = base.UserContext.IsSenderPhotosFeatureEnabled(Feature.DisplayPhotos) || flag;
            bool flag3 = base.UserContext.IsFeatureEnabled(Feature.ExplicitLogon);
            bool flag4 = base.UserContext.IsInstantMessageEnabled();

            if (flag4 || flag3 || flag2)
            {
                base.Response.Write("<a id=\"aUserTile\"  hidefocus href=\"#\" ");
                if (flag4 || flag)
                {
                    base.RenderOnClick("opnMeCardMenu();");
                    base.RenderScriptHandler("oncontextmenu", "opnMeCardMenu();");
                }
                else if (flag3)
                {
                    base.RenderOnClick("showOpenMailboxDialog();");
                }
                base.Response.Write("><span id=\"spnUserTileTxt\" class=\"userTileTxt\">");
                Utilities.RenderDirectionEnhancedValue(base.Response.Output, Utilities.HtmlEncode(base.ExchangePrincipalDisplayName), base.UserContext.IsRtl);
                base.Response.Write("</span>");
                if (flag4)
                {
                    ThemeFileId themeFileId;
                    if (flag2)
                    {
                        themeFileId = (this.IsInstantMessagingTypeOcs(base.UserContext) ? ThemeFileId.PresenceUnknownVbarSmall : ThemeFileId.PresenceOfflineVbarSmall);
                    }
                    else
                    {
                        themeFileId = (this.IsInstantMessagingTypeOcs(base.UserContext) ? ThemeFileId.PresenceUnknown : ThemeFileId.PresenceOffline);
                    }
                    base.UserContext.RenderThemeImage(base.Response.Output, themeFileId, flag2 ? "VbarSm" : "noPic", new object[]
                    {
                        "id=\"imgUserTileJB\" unselectable=\"on\""
                    });
                }
                if (flag2)
                {
                    string adpictureUrl = RenderingUtilities.GetADPictureUrl(base.UserContext.ExchangePrincipal.LegacyDn, "EX", base.UserContext, true);
                    RenderingUtilities.RenderDisplayPicture(base.Response.Output, base.UserContext, adpictureUrl, 32, true, ThemeFileId.DoughboyPersonSmall);
                }
                if (flag4 || flag || flag3)
                {
                    base.UserContext.RenderThemeImage(base.Response.Output, ThemeFileId.UserTileDropDownArrow, null, new object[]
                    {
                        "id=\"imgUserTileDD\""
                    });
                }
                base.Response.Write("</a>");
            }
            else
            {
                base.Response.Write("<span id=\"spnUserTileTxt\" class=\"userTileTxt\">");
                Utilities.RenderDirectionEnhancedValue(base.Response.Output, Utilities.HtmlEncode(base.ExchangePrincipalDisplayName), base.UserContext.IsRtl);
                base.Response.Write("</span>");
            }
            base.Response.Write("</div>");
        }