Exemplo n.º 1
0
        protected override void RenderMenuItems(TextWriter output)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }
            bool flag = this.userContext.IsInstantMessageEnabled();

            base.RenderHeader(output);
            base.RenderNoOpMenuItem(output, "divAdOf", -14224391, "spnAdOf");
            base.RenderNoOpMenuItem(output, "divAdPh", 1064004649, "spnAdPh");
            base.RenderNoOpMenuItem(output, "divCWPh", 913324763, "spnCWPh");
            base.RenderNoOpMenuItem(output, "divCHPh", 1918389986, "spnCHPh");
            base.RenderNoOpMenuItem(output, "divCMPh", -207426239, "spnCMPh");
            ContextMenu.RenderMenuDivider(output, "divEmailPropDivider");
            if (flag)
            {
                base.RenderMenuItem(output, -124986716, ThemeFileId.Chat, "divCht", "chat");
            }
            base.RenderMenuItem(output, 2130777130, ThemeFileId.EMailContact, "divNwEml", "nweml");
            if (base.UserContext.IsSmsEnabled)
            {
                base.RenderMenuItem(output, -843330244, ThemeFileId.Sms, "divSndSms", "sendsms");
            }
            if (this.userContext.IsFeatureEnabled(Feature.Calendar))
            {
                base.RenderMenuItem(output, -57938456, ThemeFileId.Appointment, "divNwMtg", "nwmtg");
            }
            ContextMenu.RenderMenuDivider(output, "divNewActionDivider");
            if (flag)
            {
                base.RenderMenuItem(output, -127081077, ThemeFileId.AddBuddy, "divAdBdyLst", "ablst");
                base.RenderMenuItem(output, -564556103, ThemeFileId.RemoveBuddy, "divRmBdyLst", "rmblst");
                ContextMenu.RenderMenuDivider(output, "divInstantMessagingDivider");
            }
            if (this.userContext.IsFeatureEnabled(Feature.Contacts))
            {
                base.RenderMenuItem(output, 5908146, ThemeFileId.Contact, "divAC", "ac");
            }
            base.RenderMenuItem(output, -186712112, ThemeFileId.None, "divPr", "prps");
            base.RenderMenuItem(output, 1388922078, ThemeFileId.None, "divRmv", "rmv");
            if (this.userContext.IsJunkEmailEnabled && this.recipientJunkEmailContextMenuType != RecipientJunkEmailContextMenuType.None)
            {
                if ((this.recipientJunkEmailContextMenuType & RecipientJunkEmailContextMenuType.Sender) != RecipientJunkEmailContextMenuType.None)
                {
                    base.RenderMenuItem(output, -2053927452, ThemeFileId.JunkEMail, "divJnkSender", null, false, null, null, JunkEmailContextMenu.Create(this.userContext, JunkEmailContextMenuType.Sender));
                }
                if ((this.recipientJunkEmailContextMenuType & RecipientJunkEmailContextMenuType.Recipient) != RecipientJunkEmailContextMenuType.None)
                {
                    base.RenderMenuItem(output, -2053927452, ThemeFileId.JunkEMail, "divJnkRecipient", null, false, null, null, JunkEmailContextMenu.Create(this.userContext, JunkEmailContextMenuType.Recipient));
                }
            }
        }
Exemplo n.º 2
0
        // Token: 0x060023B9 RID: 9145 RVA: 0x000CD894 File Offset: 0x000CBA94
        protected override void RenderMenuItems(TextWriter output)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }
            if (this.allowConversationView)
            {
                base.RenderMenuItem(output, 754949053, ThemeFileId.None, "divOpnMsg", "openMessage");
                ContextMenu.RenderMenuDivider(output, "divSOpnMsg");
                base.RenderMenuItem(output, 1746211700, ThemeFileId.None, "divNewOnTop", "oldestOnTop");
                base.RenderMenuItem(output, 2070168051, ThemeFileId.None, "divOldOnTop", "newestOnTop");
                base.RenderMenuItem(output, 18372887, ThemeFileId.None, "divExpAll", "expandAll");
                base.RenderMenuItem(output, -1678460464, ThemeFileId.None, "divColAll", "collapseAll");
                ContextMenu.RenderMenuDivider(output, "divS0");
            }
            base.RenderMenuItem(output, -1780771632, ThemeFileId.Post, "divPR", "postreply");
            base.RenderMenuItem(output, -327372070, ThemeFileId.Reply, "divR", "reply");
            base.RenderMenuItem(output, 826363927, ThemeFileId.ReplyAll, "divRA", "replyall");
            base.RenderMenuItem(output, -1428116961, ThemeFileId.Forward, "divF", "forward");
            if (this.userContext.IsInstantMessageEnabled())
            {
                base.RenderMenuItem(output, -124986716, ThemeFileId.Chat, "divCht", "chat");
            }
            if (base.UserContext.IsSmsEnabled)
            {
                base.RenderMenuItem(output, 1509309420, ThemeFileId.Sms, "divSndSms", "sendsms");
            }
            ContextMenu.RenderMenuDivider(output, "divS1");
            base.RenderMenuItem(output, -475579318, ThemeFileId.MeetingAccept, "divMIA", null, false, null, null, MeetingInviteResponseMenu.Create(this.userContext, ResponseType.Accept));
            base.RenderMenuItem(output, 1797669216, ThemeFileId.MeetingTentative, "divMIT", null, false, null, null, MeetingInviteResponseMenu.Create(this.userContext, ResponseType.Tentative));
            base.RenderMenuItem(output, -2119870632, ThemeFileId.MeetingDecline, "divMID", null, false, null, null, MeetingInviteResponseMenu.Create(this.userContext, ResponseType.Decline));
            ContextMenu.RenderMenuDivider(output, "divS2");
            base.RenderMenuItem(output, 438661106, ThemeFileId.ForwardAsAttachment, "divFIA", "fwia");
            if (this.userContext.ExchangePrincipal.RecipientTypeDetails == RecipientTypeDetails.DiscoveryMailbox)
            {
                ContextMenu.RenderMenuDivider(output, "divMsgNote");
                base.RenderMenuItem(output, 1146710980, ThemeFileId.MessageAnnotation, "divOpMsgNote", "opmsgnote");
            }
            ContextMenu.RenderMenuDivider(output, "divS3");
            base.RenderMenuItem(output, -228249127, ThemeFileId.MessageRead, "divMR", "markread");
            base.RenderMenuItem(output, 556449500, ThemeFileId.MessageUnread, "divMU", "markunread");
            try
            {
                DeletePolicyContextMenu.RenderAsSubmenu(output, this.userContext, new RenderMenuItemDelegate(base.RenderMenuItem));
                MovePolicyContextMenu.RenderAsSubmenu(output, this.userContext, new RenderMenuItemDelegate(base.RenderMenuItem));
            }
            catch (AccessDeniedException)
            {
            }
            ContextMenu.RenderMenuDivider(output, "divS4");
            if (this.userContext.IsFeatureEnabled(Feature.Rules))
            {
                base.RenderMenuItem(output, 1219103799, ThemeFileId.RulesSmall, "divCR", "crrul");
            }
            if (this.userContext.IsJunkEmailEnabled)
            {
                base.RenderMenuItem(output, -2053927452, ThemeFileId.JunkEMail, "divJnk", null, false, null, null, JunkEmailContextMenu.Create(this.userContext, JunkEmailContextMenuType.Item));
                ContextMenu.RenderMenuDivider(output, "divS5");
            }
            base.RenderMenuItem(output, 1381996313, ThemeFileId.Delete, "divD", "delete");
            if (this.allowConversationView)
            {
                base.RenderMenuItem(output, 1486263145, ThemeFileId.IgnoreConversation, "divIgnCnv", "ignoreconversation");
                base.RenderMenuItem(output, -476691185, ThemeFileId.IgnoreConversation, "divCanIgnCnv", "cancelignoreconversation");
            }
            ContextMenu.RenderMenuDivider(output, "divS6");
            base.RenderMenuItem(output, -1664268159, ThemeFileId.Move, "divMvToF", "MvToF");
            base.RenderMenuItem(output, -1581636675, ThemeFileId.CopyToFolder, "divCpToF", "CpToF");
            if (this.isPublicFolder)
            {
                return;
            }
            ContextMenu.RenderMenuDivider(output, "divSODL");
            base.RenderMenuItem(output, 472458684, ThemeFileId.OpenDeliveryReport, "divOpDlvRp", "opdlvrp");
            bool flag = true;
            int  num  = 0;

            using (List <UIExtensionManager.RightClickMenuExtensionItem> .Enumerator messageContextMenuItemEnumerator = UIExtensionManager.GetMessageContextMenuItemEnumerator())
            {
                while (messageContextMenuItemEnumerator.MoveNext())
                {
                    UIExtensionManager.RightClickMenuExtensionItem rightClickMenuExtensionItem = messageContextMenuItemEnumerator.Current;
                    if (flag)
                    {
                        ContextMenu.RenderMenuDivider(output, "divCustomSep");
                        flag = false;
                    }
                    StringBuilder stringBuilder = new StringBuilder();
                    stringBuilder.Append("_sUrl=\"");
                    Utilities.HtmlEncode(rightClickMenuExtensionItem.TargetUrl, stringBuilder);
                    Utilities.HtmlEncode(rightClickMenuExtensionItem.HasQueryString ? "&" : "?", stringBuilder);
                    stringBuilder.Append("ea=");
                    Utilities.HtmlEncode(Utilities.UrlEncode(this.userContext.MailboxIdentity.GetOWAMiniRecipient().PrimarySmtpAddress.ToString()), stringBuilder);
                    stringBuilder.Append("\"");
                    if (!string.IsNullOrEmpty(rightClickMenuExtensionItem.CustomType))
                    {
                        stringBuilder.Append(" _sT=\"");
                        Utilities.HtmlEncode(rightClickMenuExtensionItem.CustomType, stringBuilder);
                        stringBuilder.Append("\"");
                    }
                    base.RenderMenuItem(output, rightClickMenuExtensionItem.GetTextByLanguage(this.userContext.UserCulture.Name), string.IsNullOrEmpty(rightClickMenuExtensionItem.Icon) ? null : rightClickMenuExtensionItem.Icon, "divCstmCM" + num.ToString(CultureInfo.InvariantCulture), "cstmCM", false, stringBuilder.ToString(), null, null, null, null);
                    num++;
                }
            }
        }