コード例 #1
0
        // Token: 0x06002433 RID: 9267 RVA: 0x000D139C File Offset: 0x000CF59C
        internal static void RenderPublicFolderSecondaryNavigation(TextWriter output, UserContext userContext)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }
            if (userContext == null)
            {
                throw new ArgumentNullException("userContext");
            }
            output.Write("<div id=\"divPFFlt\"></div>");
            PublicFolderTree publicFolderTree = PublicFolderTree.CreatePublicFolderRootTree(userContext);
            ContextMenu      contextMenu      = new PublicFolderTreeContextMenu(userContext);

            output.Write("<div id=\"divPFTrR\">");
            Infobar infobar = new Infobar("divErrPF", "infobar");

            infobar.Render(output);
            NavigationHost.RenderTreeRegionDivStart(output, null);
            NavigationHost.RenderTreeDivStart(output, "publictree");
            publicFolderTree.ErrDiv = "divErrPF";
            publicFolderTree.Render(output);
            NavigationHost.RenderTreeDivEnd(output);
            NavigationHost.RenderTreeRegionDivEnd(output);
            contextMenu.Render(output);
            output.Write("</div>");
        }
コード例 #2
0
 // Token: 0x060022A1 RID: 8865 RVA: 0x000C625C File Offset: 0x000C445C
 public static void RenderMessage(TextWriter output, InfobarMessageType messageType, SanitizedHtmlString messageHtml, string messageId, bool hideMessage, ISessionContext sessionContext)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     if (messageHtml == null)
     {
         throw new ArgumentNullException("messageHtml");
     }
     Infobar.RenderMessageIdAndClass(output, messageType, messageId, sessionContext);
     output.Write("\"");
     if (hideMessage)
     {
         output.Write(" style=\"display:none\" ");
         output.Write("isVisible");
         output.Write("=0");
     }
     else
     {
         output.Write(" ");
         output.Write("isVisible");
         output.Write("=1");
     }
     output.Write(">");
     output.Write(sessionContext.IsRtl ? "<div class=\"fltRight\">" : "<div class=\"fltLeft\">");
     sessionContext.RenderThemeImage(output, ThemeFileId.Dash, sessionContext.IsRtl ? "rtl dashImg" : "dashImg", new object[]
     {
         "id=imgDash"
     });
     output.Write("</div>");
     output.Write(messageHtml);
     output.Write("</div>");
 }
コード例 #3
0
        // Token: 0x06001E1D RID: 7709 RVA: 0x000AE4A4 File Offset: 0x000AC6A4
        public static void RenderInfobar(TextWriter output, ArrayList attachmentList, SanitizedHtmlString errorInAttachments, UserContext userContext)
        {
            if (attachmentList == null)
            {
                return;
            }
            int count = attachmentList.Count;

            if (count <= 0 && errorInAttachments == null)
            {
                return;
            }
            Infobar infobar = new Infobar();

            if (errorInAttachments != null)
            {
                infobar.AddMessage(errorInAttachments, InfobarMessageType.Warning, AttachmentWell.AttachmentInfobarErrorHtmlTag);
            }
            bool flag = AttachmentUtility.IsLevelOneAndBlock(attachmentList);

            if (flag)
            {
                infobar.AddMessage(SanitizedHtmlString.FromStringId(-2118248931), InfobarMessageType.Informational, AttachmentWell.AttachmentInfobarHtmlTag);
            }
            infobar.Render(output);
        }
コード例 #4
0
        // Token: 0x060022D2 RID: 8914 RVA: 0x000C74DC File Offset: 0x000C56DC
        public static void AddIrmInformation(Infobar infobar, ItemPart itemPart, bool addRemoveLink)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            if (itemPart == null)
            {
                throw new ArgumentNullException("itemPart");
            }
            if (!itemPart.IrmInfo.IsRestricted || itemPart.IrmInfo.DecryptionStatus.Failed)
            {
                return;
            }
            SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
            string str = string.Format(LocalizedStrings.GetNonEncoded(-500320626), itemPart.IrmInfo.TemplateName, itemPart.IrmInfo.TemplateDescription);

            sanitizingStringBuilder.Append(str);
            if (addRemoveLink)
            {
                sanitizingStringBuilder.Append(" <a id=\"aIbRR\" href=\"#\">");
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(540836651));
                sanitizingStringBuilder.Append("</a>");
            }
            infobar.AddMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divCmplIB");
        }
コード例 #5
0
        // Token: 0x06002440 RID: 9280 RVA: 0x000D1A1C File Offset: 0x000CFC1C
        internal static void RenderNavigationTreeControl(TextWriter writer, UserContext userContext, NavigationNodeGroupSection groupSection, OwaStoreObjectId newFolderId)
        {
            if (groupSection == NavigationNodeGroupSection.First)
            {
                throw new ArgumentException("Should not use this function to render favorites tree.");
            }
            string navigationTreeErrDivId = NavigationHost.GetNavigationTreeErrDivId(groupSection);
            string navigationTreeId       = NavigationHost.GetNavigationTreeId(groupSection);
            string navigationTreeRegionId = NavigationHost.GetNavigationTreeRegionId(groupSection);

            writer.Write("<div id=\"");
            writer.Write(navigationTreeRegionId);
            writer.Write("\">");
            Infobar infobar = new Infobar(navigationTreeErrDivId, "infobar");

            infobar.Render(writer);
            NavigationHost.RenderTreeRegionDivStart(writer, null);
            NavigationTree navigationTree = NavigationTree.CreateNavigationTree(userContext, groupSection);

            if (newFolderId != null)
            {
                navigationTree.RootNode.SelectSpecifiedFolder(newFolderId);
            }
            NavigationHost.RenderTreeDivStart(writer, navigationTreeId);
            navigationTree.ErrDiv = navigationTreeErrDivId;
            navigationTree.Render(writer);
            NavigationHost.RenderTreeDivEnd(writer);
            NavigationHost.RenderTreeRegionDivEnd(writer);
            writer.Write("</div>");
        }
コード例 #6
0
 // Token: 0x0600229F RID: 8863 RVA: 0x000C6222 File Offset: 0x000C4422
 public static void RenderMessage(TextWriter output, InfobarMessage infobarMessage, ISessionContext sessionContext)
 {
     if (infobarMessage == null)
     {
         throw new ArgumentNullException("infobarMessage");
     }
     Infobar.RenderMessage(output, infobarMessage.Type, infobarMessage.Message, infobarMessage.TagId, false, sessionContext);
 }
コード例 #7
0
        // Token: 0x060022A6 RID: 8870 RVA: 0x000C6550 File Offset: 0x000C4750
        public static void RenderExpandingMessage(TextWriter output, InfobarMessageType messageType, SanitizedHtmlString message, string messageId, SanitizedHtmlString linkText, SanitizedHtmlString expandSection, ISessionContext sessionContext, bool isVerticalSpaceRequired)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }
            if (linkText == null)
            {
                throw new ArgumentNullException("linkText");
            }
            if (expandSection == null)
            {
                throw new ArgumentNullException("expandSection");
            }
            if (sessionContext == null)
            {
                throw new ArgumentNullException("sessionContext");
            }
            Infobar.RenderMessageIdAndClass(output, messageType, messageId, sessionContext);
            if (isVerticalSpaceRequired)
            {
                output.Write(" vsp");
            }
            output.Write("\">");
            string styleClass = sessionContext.IsRtl ? "rtl dashImg" : "dashImg";

            sessionContext.RenderThemeImage(output, ThemeFileId.Dash, styleClass, new object[]
            {
                "id=imgDash"
            });
            if (messageType == InfobarMessageType.ExpandingError)
            {
                output.Write("<span class=\"ibM\">");
            }
            output.Write(message);
            if (messageType == InfobarMessageType.ExpandingError)
            {
                output.Write("</span>");
            }
            output.Write("<span id=spnIbL ");
            Utilities.RenderScriptHandler(output, "onclick", "tglInfo(_this);");
            output.Write(">");
            output.Write(linkText);
            sessionContext.RenderThemeImage(output, ThemeFileId.Expand, null, new object[]
            {
                "id=imgExp"
            });
            output.Write("</span>");
            output.Write("<div id=divIbE ");
            Utilities.RenderScriptHandler(output, "onclick", "canEvt(event);");
            output.Write(" style=\"display:none\">");
            output.Write(expandSection);
            output.Write("</div></div>");
        }
コード例 #8
0
 // Token: 0x060022D0 RID: 8912 RVA: 0x000C7334 File Offset: 0x000C5534
 public static void AddReadReceiptNotice(UserContext userContext, Infobar infobar, IStorePropertyBag storePropertyBag)
 {
     if (InfobarMessageBuilderBase.ShouldRenderReadReceiptNoticeInfobar(userContext, storePropertyBag))
     {
         SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
         sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(115261126));
         sanitizingStringBuilder.Append(" <a href=# id=aRqRcpt>");
         sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1190033799));
         sanitizingStringBuilder.Append("</a>");
         infobar.AddMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divSRR");
     }
 }
コード例 #9
0
        // Token: 0x060022A4 RID: 8868 RVA: 0x000C636C File Offset: 0x000C456C
        public void Render(TextWriter output, bool isEditable, bool renderHidden)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }
            output.Write("<div id=\"divInfobar\"");
            output.Write(" class=\"");
            output.Write(this.barClass);
            if (this.sessionContext.IsRtl)
            {
                output.Write(" rtl");
            }
            output.Write("\"");
            if (this.ShouldHideInfobar(renderHidden))
            {
                output.Write(" style=\"display:none\"");
            }
            output.Write(">");
            output.Write("<div id=\"divInfobarColor\"");
            output.Write(" class=\"");
            if (Infobar.HasHighSeverityMessages(this.messages))
            {
                output.Write("highSeverity");
            }
            else if (0 < this.messages.Count)
            {
                output.Write("lowSeverity");
            }
            output.Write("\"></div>");
            output.Write("<div id=\"divIB\">");
            RenderingUtilities.RenderErrorInfobar(this.sessionContext, output, this.divErrorId);
            Infobar.InfobarMessageComparer comparer = new Infobar.InfobarMessageComparer();
            this.messages.Sort(comparer);
            InfobarMessageType infobarMessageType = InfobarMessageType.Maximum;

            foreach (object obj in this.messages)
            {
                InfobarMessage     infobarMessage = (InfobarMessage)obj;
                InfobarMessageType type           = infobarMessage.Type;
                if (type == InfobarMessageType.Expanding || type == InfobarMessageType.ExpandingError)
                {
                    Infobar.RenderExpandingMessage(output, infobarMessage.Type, infobarMessage.Message, infobarMessage.TagId, infobarMessage.LinkText, infobarMessage.ExpandSection, this.sessionContext, infobarMessageType == infobarMessage.Type);
                }
                else
                {
                    Infobar.RenderMessage(output, infobarMessage.Type, infobarMessage.Message, infobarMessage.TagId, infobarMessage.HideMessage, this.sessionContext);
                }
                infobarMessageType = infobarMessage.Type;
            }
            output.Write("</div></div>");
        }
コード例 #10
0
        // Token: 0x060022CE RID: 8910 RVA: 0x000C7268 File Offset: 0x000C5468
        public static void AddCompliance(UserContext userContext, Infobar infobar, IStorePropertyBag storePropertyBag, bool isSenderMessage)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string compliance = InfobarMessageBuilderBase.GetCompliance(userContext, storePropertyBag, isSenderMessage);

            if (compliance != null)
            {
                infobar.AddMessage(Utilities.SanitizeHtmlEncode(compliance), InfobarMessageType.Informational, "divCmplIB");
            }
        }
コード例 #11
0
        // Token: 0x060022CB RID: 8907 RVA: 0x000C71B4 File Offset: 0x000C53B4
        public static void AddFlag(Infobar infobar, IStorePropertyBag storePropertyBag, UserContext userContext)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            InfobarMessage flag = InfobarMessageBuilder.GetFlag(storePropertyBag, userContext);

            if (flag != null)
            {
                infobar.AddMessage(flag);
            }
        }
コード例 #12
0
        // Token: 0x060022C9 RID: 8905 RVA: 0x000C714C File Offset: 0x000C534C
        public static void AddImportance(Infobar infobar, IStorePropertyBag storePropertyBag)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string importance = InfobarMessageBuilderBase.GetImportance(storePropertyBag);

            if (importance != null)
            {
                infobar.AddMessage(Utilities.SanitizeHtmlEncode(importance), InfobarMessageType.Informational);
            }
        }
コード例 #13
0
        // Token: 0x060022CA RID: 8906 RVA: 0x000C7180 File Offset: 0x000C5380
        public static void AddSensitivity(Infobar infobar, IStorePropertyBag storePropertyBag)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string sensitivity = InfobarMessageBuilderBase.GetSensitivity(storePropertyBag);

            if (sensitivity != null)
            {
                infobar.AddMessage(Utilities.SanitizeHtmlEncode(sensitivity), InfobarMessageType.Informational);
            }
        }
コード例 #14
0
 // Token: 0x060022D3 RID: 8915 RVA: 0x000C7598 File Offset: 0x000C5798
 public static void AddDeletePolicyInformation(Infobar infobar, IStorePropertyBag storePropertyBag, UserContext userContext)
 {
     if (infobar == null)
     {
         throw new ArgumentNullException("infobar");
     }
     if (storePropertyBag == null)
     {
         throw new ArgumentNullException("storePropertyBag");
     }
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     if (PolicyProvider.DeletePolicyProvider.IsPolicyEnabled(userContext.MailboxSession) && ItemUtility.HasDeletePolicy(storePropertyBag))
     {
         ExDateTime now      = ExDateTime.Now;
         ExDateTime property = ItemUtility.GetProperty <ExDateTime>(storePropertyBag, ItemSchema.RetentionDate, ExDateTime.MinValue);
         if (property > ExDateTime.MinValue)
         {
             TimeSpan timeSpan  = property - now;
             string   s         = string.Format(LocalizedStrings.GetNonEncoded(217128690), (timeSpan.Days < 0) ? 0 : timeSpan.Days);
             Guid?    guid      = null;
             byte[]   property2 = ItemUtility.GetProperty <byte[]>(storePropertyBag, StoreObjectSchema.PolicyTag, null);
             if (property2 != null && property2.Length == InfobarMessageBuilder.SizeOfGuid)
             {
                 guid = new Guid?(new Guid(property2));
             }
             PolicyTagList    allPolicies = PolicyProvider.DeletePolicyProvider.GetAllPolicies(userContext.MailboxSession);
             List <PolicyTag> list        = new List <PolicyTag>(allPolicies.Values.Count);
             if (guid != null && allPolicies.Count > 0)
             {
                 foreach (PolicyTag policyTag in allPolicies.Values)
                 {
                     if (object.Equals(policyTag.PolicyGuid, guid))
                     {
                         list.Add(policyTag);
                     }
                 }
             }
             string s2 = string.Format(LocalizedStrings.GetNonEncoded(2084315882), (list.Count > 0) ? list[0].Name : string.Empty, (list.Count > 0) ? PolicyContextMenuBase.TimeSpanToString(list[0].TimeSpanForRetention) : string.Empty, property.ToString("d", CultureInfo.CurrentUICulture));
             infobar.AddMessage(Utilities.SanitizeHtmlEncode(s2), InfobarMessageType.Informational);
             if (timeSpan.Days < 30)
             {
                 infobar.AddMessage(Utilities.SanitizeHtmlEncode(s), InfobarMessageType.Informational);
             }
         }
     }
 }
コード例 #15
0
 // Token: 0x060022CC RID: 8908 RVA: 0x000C71E4 File Offset: 0x000C53E4
 public static void AddNoEditPermissionWarning(Infobar infobar, Item item, bool isPreviewForm)
 {
     if (infobar == null)
     {
         throw new ArgumentNullException("infobar");
     }
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     if ((Utilities.IsPublic(item) || Utilities.IsOtherMailbox(item)) && !isPreviewForm && !ItemUtility.UserCanEditItem(item))
     {
         infobar.AddMessage(SanitizedHtmlString.FromStringId(2078257811), InfobarMessageType.Informational);
     }
 }
コード例 #16
0
        // Token: 0x060022D1 RID: 8913 RVA: 0x000C7398 File Offset: 0x000C5598
        public static void AddIrmInformation(Infobar infobar, MessageItem item, bool isPreviewForm, bool addConversationOwner, bool addRemoveLink, bool addAttachDisclaimer)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }
            if (addAttachDisclaimer)
            {
                infobar.AddMessage(SanitizedHtmlString.FromStringId(-914838464), InfobarMessageType.Informational);
            }
            if (!Utilities.IsIrmRestrictedAndDecrypted(item))
            {
                return;
            }
            RightsManagedMessageItem          rightsManagedMessageItem = (RightsManagedMessageItem)item;
            SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder  = new SanitizingStringBuilder <OwaHtml>();
            string str = string.Format(LocalizedStrings.GetNonEncoded(-500320626), rightsManagedMessageItem.Restriction.Name, rightsManagedMessageItem.Restriction.Description);

            sanitizingStringBuilder.Append(str);
            if (addRemoveLink)
            {
                sanitizingStringBuilder.Append(" <a id=\"aIbRR\" href=# ");
                sanitizingStringBuilder.AppendFormat("_sIT=\"IPM.Note\" _sAct=\"{0}\" _fRR=1", new object[]
                {
                    isPreviewForm ? "Preview" : string.Empty
                });
                sanitizingStringBuilder.Append(">");
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(540836651));
                sanitizingStringBuilder.Append("</a>");
            }
            if (addConversationOwner && !isPreviewForm && rightsManagedMessageItem.ConversationOwner != null && !string.IsNullOrEmpty(rightsManagedMessageItem.ConversationOwner.EmailAddress))
            {
                string str2 = string.Format(LocalizedStrings.GetNonEncoded(1670455506), rightsManagedMessageItem.ConversationOwner.EmailAddress);
                sanitizingStringBuilder.Append("<br>");
                sanitizingStringBuilder.Append(str2);
            }
            infobar.AddMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divCmplIB");
        }
コード例 #17
0
        // Token: 0x06002590 RID: 9616 RVA: 0x000D9548 File Offset: 0x000D7748
        internal void Build(Infobar infobar)
        {
            SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();

            sanitizingStringBuilder.Append("<div id=divSFIB ");
            if (this.colorIndex != -2)
            {
                sanitizingStringBuilder.Append("class=bcal");
                sanitizingStringBuilder.Append <int>(CalendarColorManager.GetClientColorIndex(this.colorIndex));
            }
            else
            {
                sanitizingStringBuilder.Append("class=calNoClr");
            }
            sanitizingStringBuilder.Append(">");
            string str = this.userContext.IsRtl ? "<div class=\"fltRight\"" : "<div class=\"fltLeft\"";

            sanitizingStringBuilder.Append(str);
            if (this.isSharedFolder && this.renderNotifyForOtherUser)
            {
                sanitizingStringBuilder.Append("><input type=\"checkbox\" id=\"chkNtfy\"></div>");
                sanitizingStringBuilder.Append(str);
                sanitizingStringBuilder.Append(" id=\"divNtfy\"><label for=\"chkNtfy\">");
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(816646619));
                sanitizingStringBuilder.Append(" ");
                sanitizingStringBuilder.Append <SanitizedHtmlString>(this.folderOwnerEncodedName);
                sanitizingStringBuilder.Append("</label></div>");
                str = (this.userContext.IsRtl ? "<div class=\"fltLeft\"" : "<div class=\"fltRight\"");
                sanitizingStringBuilder.Append(str);
            }
            if (!this.isSharedFolder || !this.renderNotifyForOtherUser)
            {
                sanitizingStringBuilder.Append(" id=\"divShrType\">");
                this.BuildFolderType(sanitizingStringBuilder);
            }
            else
            {
                sanitizingStringBuilder.Append(" id=\"divShrName\">");
                this.BuildFolderName(sanitizingStringBuilder);
            }
            sanitizingStringBuilder.Append(this.userContext.DirectionMark);
            sanitizingStringBuilder.Append("</div>");
            sanitizingStringBuilder.Append(str);
            sanitizingStringBuilder.Append(" id=\"divShrImg\">");
            this.BuildIcon(sanitizingStringBuilder);
            sanitizingStringBuilder.Append(this.userContext.DirectionMark);
            sanitizingStringBuilder.Append("</div>");
            sanitizingStringBuilder.Append(str);
            if (!this.isSharedFolder || !this.renderNotifyForOtherUser)
            {
                sanitizingStringBuilder.Append(" id=\"divShrName\">");
                this.BuildFolderName(sanitizingStringBuilder);
            }
            else
            {
                sanitizingStringBuilder.Append(" id=\"divShrType\">");
                this.BuildFolderType(sanitizingStringBuilder);
            }
            sanitizingStringBuilder.Append("</div></div>");
            infobar.AddMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divCalendarInfobarMessage");
        }
コード例 #18
0
 // Token: 0x060022A0 RID: 8864 RVA: 0x000C624C File Offset: 0x000C444C
 public static void RenderMessage(TextWriter output, InfobarMessageType messageType, SanitizedHtmlString messageHtml, ISessionContext sessionContext)
 {
     Infobar.RenderMessage(output, messageType, messageHtml, null, false, sessionContext);
 }
コード例 #19
0
        // Token: 0x06002434 RID: 9268 RVA: 0x000D1444 File Offset: 0x000CF644
        internal static void RenderMailSecondaryNavigation(TextWriter output, UserContext userContext)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }
            if (userContext == null)
            {
                throw new ArgumentNullException("userContext");
            }
            output.Write("<div id=\"divMTrR\">");
            Infobar infobar = new Infobar("divErrMail", "infobar");

            infobar.Render(output);
            NavigationHost.RenderTreeRegionDivStart(output, null);
            NavigationTree    navigationTree;
            MailboxFolderTree mailboxFolderTree;

            MailboxFolderTree[] array;
            bool expandBuddyList;

            NavigationTree.CreateFavoriteAndMailboxTreeAndGetBuddyListStatus(userContext, out navigationTree, out mailboxFolderTree, out array, out expandBuddyList);
            NavigationHost.RenderTreeDivStart(output, "favTr");
            navigationTree.ErrDiv = "divErrMail";
            navigationTree.Render(output);
            NavigationHost.RenderTreeDivEnd(output);
            NavigationHost.RenderTreeDivStart(output, "mailtree");
            mailboxFolderTree.ErrDiv = "divErrMail";
            mailboxFolderTree.Render(output);
            NavigationHost.RenderTreeDivEnd(output);
            if (!userContext.IsExplicitLogon)
            {
                if (userContext.HasArchive)
                {
                    NavigationHost.RenderTreeDivStart(output, "archivetree", "othTr");
                    MailboxFolderTree mailboxFolderTree2 = MailboxFolderTree.CreateStartPageDummyArchiveMailboxFolderTree(userContext);
                    mailboxFolderTree2.ErrDiv = "divErrMail";
                    mailboxFolderTree2.Render(output);
                    NavigationHost.RenderTreeDivEnd(output);
                }
                foreach (OtherMailboxConfigEntry entry in OtherMailboxConfiguration.GetOtherMailboxes(userContext))
                {
                    NavigationHost.RenderOtherMailboxFolderTree(output, userContext, entry, false);
                }
            }
            if (userContext.IsInstantMessageEnabled())
            {
                NavigationHost.RenderTreeDivStart(output, "buddytree");
                NavigationHost.RenderBuddyListTreeControl(output, userContext, expandBuddyList);
                NavigationHost.RenderTreeDivEnd(output);
            }
            NavigationHost.RenderTreeRegionDivEnd(output);
            output.Write("</div>");
            ContextMenu contextMenu = new FolderTreeContextMenu(userContext);

            contextMenu.Render(output);
            if (userContext.IsInstantMessageEnabled())
            {
                ContextMenu contextMenu2 = new BuddyTreeContextMenu(userContext);
                contextMenu2.Render(output);
            }
        }
コード例 #20
0
 // Token: 0x060022A5 RID: 8869 RVA: 0x000C653C File Offset: 0x000C473C
 public static void RenderExpandingMessage(TextWriter output, InfobarMessageType messageType, SanitizedHtmlString message, string messageId, SanitizedHtmlString linkText, SanitizedHtmlString expandSection, ISessionContext sessionContext)
 {
     Infobar.RenderExpandingMessage(output, messageType, message, messageId, linkText, expandSection, sessionContext, false);
 }