Exemple #1
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>");
        }
Exemple #2
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>");
        }
        // 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);
        }
Exemple #4
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);
            }
        }