// Token: 0x0600220F RID: 8719 RVA: 0x000C2754 File Offset: 0x000C0954
        internal static MailboxFolderTree CreateOtherMailboxFolderTree(UserContext userContext, OtherMailboxConfigEntry entry, bool isExpanded)
        {
            FolderTreeNode folderTreeNode = FolderTreeNode.CreateOtherMailboxRootNode(userContext, entry, isExpanded);

            if (folderTreeNode == null)
            {
                return(null);
            }
            folderTreeNode.IsExpanded = isExpanded;
            FolderTreeNode folderTreeNode2 = folderTreeNode;

            folderTreeNode2.HighlightClassName += " trNdGpHdHl";
            return(new MailboxFolderTree(userContext, folderTreeNode, FolderTreeRenderType.None));
        }
Exemplo n.º 2
0
        // Token: 0x06002FAF RID: 12207 RVA: 0x00115124 File Offset: 0x00113324
        private void RenderSiblingNodes(OwaStoreObjectId parentFolderId, OwaStoreObjectId newFolderId, FolderTreeRenderType renderType)
        {
            FolderTreeNode folderTreeNode;

            if (parentFolderId.IsPublic)
            {
                folderTreeNode = FolderTreeNode.CreatePublicFolderTreeNode(base.UserContext, parentFolderId.StoreObjectId);
            }
            else if (parentFolderId.IsOtherMailbox)
            {
                folderTreeNode = FolderTreeNode.CreateOtherMailboxRootNode(base.UserContext, parentFolderId, string.Empty, true);
                if (folderTreeNode == null)
                {
                    throw new OwaEventHandlerException("User cannot view other's Inbox", LocalizedStrings.GetNonEncoded(995407892), true);
                }
            }
            else
            {
                folderTreeNode = FolderTreeNode.CreateMailboxFolderTreeNode(base.UserContext, (MailboxSession)parentFolderId.GetSession(base.UserContext), parentFolderId.StoreObjectId, renderType);
            }
            if (folderTreeNode == null)
            {
                return;
            }
            if (newFolderId != null)
            {
                foreach (TreeNode treeNode in folderTreeNode.Children)
                {
                    FolderTreeNode folderTreeNode2 = (FolderTreeNode)treeNode;
                    if (folderTreeNode2.FolderId.Equals(newFolderId))
                    {
                        FolderTreeNode folderTreeNode3 = folderTreeNode2;
                        folderTreeNode3.CustomAttributes += " _NF=1";
                    }
                }
            }
            folderTreeNode.RenderUndecoratedChildrenNode(this.Writer);
        }