コード例 #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>");
        }
コード例 #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>");
        }
コード例 #3
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);
            }
        }