// Token: 0x060025D0 RID: 9680 RVA: 0x000DB094 File Offset: 0x000D9294
 protected override void RenderMenuItems(TextWriter output)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     base.RenderMenuItem(output, 197744374, ThemeFileId.None, "divO", "open");
     ContextMenu.RenderMenuDivider(output, "divS1");
     base.RenderMenuItem(output, -747517193, ThemeFileId.EMailContact, "divNM", "nmsgct");
     if (base.UserContext.IsFeatureEnabled(Feature.Calendar))
     {
         base.RenderMenuItem(output, -1596894910, ThemeFileId.Appointment, "divNMR", "nmrgct");
     }
     base.RenderMenuItem(output, -327372070, ThemeFileId.Reply, "divR", "reply");
     base.RenderMenuItem(output, 826363927, ThemeFileId.ReplyAll, "divRA", "replyall");
     base.RenderMenuItem(output, -1428116961, ThemeFileId.Forward, "divF", "forward");
     ContextMenu.RenderMenuDivider(output, "divS2");
     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, "divS3");
     base.RenderMenuItem(output, 438661106, ThemeFileId.ForwardAsAttachment, "divFIA", "fwia");
     ContextMenu.RenderMenuDivider(output, "divS4");
     base.RenderMenuItem(output, -32068740, ThemeFileId.MarkComplete, "divMkCmp", "markcomplete");
     ContextMenu.RenderMenuDivider(output, "divS5");
     base.RenderMenuItem(output, 1381996313, ThemeFileId.Delete, "divD", "delete");
 }
 protected override void RenderMenuItems(TextWriter output)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     base.RenderMenuItem(output, 197744374, ThemeFileId.None, "divOpen", "open");
     base.RenderMenuItem(output, -612034802, ThemeFileId.Print, "divPrint", "print");
     ContextMenu.RenderMenuDivider(output, "divS1");
     base.RenderMenuItem(output, -327372070, ThemeFileId.Reply, "divReply", "reply");
     base.RenderMenuItem(output, 826363927, ThemeFileId.ReplyAll, "divReplyAll", "replyall");
     base.RenderMenuItem(output, -1428116961, ThemeFileId.Forward, "divForward", "forward");
     base.RenderMenuItem(output, 1643198969, ThemeFileId.None, "divCallSender", "callsender");
     if (this.userContext.IsInstantMessageEnabled())
     {
         base.RenderMenuItem(output, -725533133, ThemeFileId.None, "divChatWithSender", "chatwithsender");
     }
     if (base.UserContext.IsSmsEnabled)
     {
         base.RenderMenuItem(output, 1509309420, ThemeFileId.Sms, "divSndSms", "sendsms");
     }
     ContextMenu.RenderMenuDivider(output, "divS2");
     base.RenderMenuItem(output, -475579318, ThemeFileId.MeetingAccept, "divAccept", "accept", false, null, null, MeetingInviteResponseMenu.Create(this.userContext, ResponseType.Accept));
     base.RenderMenuItem(output, 1797669216, ThemeFileId.MeetingTentative, "divTentative", "tentative", false, null, null, MeetingInviteResponseMenu.Create(this.userContext, ResponseType.Tentative));
     base.RenderMenuItem(output, -2119870632, ThemeFileId.MeetingDecline, "divDecline", "decline", false, null, null, MeetingInviteResponseMenu.Create(this.userContext, ResponseType.Decline));
     ContextMenu.RenderMenuDivider(output, "divS3");
     base.RenderMenuItem(output, -1268489823, ThemeFileId.MenuPrivate, "divPrivate", "private");
     base.RenderMenuItem(output, 1833378074, ThemeFileId.None, "divShowTimeAs", "showtimeas", false, null, null, new CalendarItemShowTimeAsContextMenu(base.UserContext));
     ContextMenu.RenderMenuDivider(output, "divS4");
     base.RenderMenuItem(output, -1414360302, ThemeFileId.Move, "divMove", "move");
     base.RenderMenuItem(output, 1381996313, ThemeFileId.Delete, "divDelete", "delete");
 }
예제 #3
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++;
                }
            }
        }