// Token: 0x06002219 RID: 8729 RVA: 0x000C2A60 File Offset: 0x000C0C60 internal static PublicFolderTree CreatePublicFolderRootTree(UserContext userContext) { PublicFolderTree publicFolderTree = new PublicFolderTree(userContext, FolderTreeNode.CreatePublicFolderTreeRootNode(userContext), FolderTreeRenderType.None); publicFolderTree.RootNode.IsExpanded = true; publicFolderTree.RootNode.Selected = true; FolderTreeNode rootNode = publicFolderTree.RootNode; rootNode.HighlightClassName += " trNdGpHdHl"; return(publicFolderTree); }
// Token: 0x06002216 RID: 8726 RVA: 0x000C28DC File Offset: 0x000C0ADC internal static FolderPickerTree CreateFolderPickerTree(UserContext userContext, bool requirePublicFolderTree) { FolderPickerTree folderPickerTree = new FolderPickerTree(userContext, new InvisibleRootTreeNode(userContext), FolderTreeRenderType.HideSearchFolders); FolderTreeNode folderTreeNode = FolderTreeNode.CreateMailboxFolderTreeRootNode(userContext, userContext.MailboxSession, FolderTreeRenderType.HideSearchFolders); folderTreeNode.IsExpanded = true; folderTreeNode.Selected = true; FolderTreeNode folderTreeNode2 = folderTreeNode; folderTreeNode2.HighlightClassName += " trNdGpHdHl"; folderPickerTree.RootNode.AddChild(folderTreeNode); if (!userContext.IsExplicitLogon && userContext.HasArchive) { FolderTreeNode archiveRootNode = null; if (userContext.ArchiveAccessed) { userContext.TryLoopArchiveMailboxes(delegate(MailboxSession archiveSession) { FolderTreeNode archiveRootNode = FolderTreeNode.CreateMailboxFolderTreeRootNode(userContext, archiveSession, FolderTreeRenderType.HideSearchFolders); archiveRootNode.IsExpanded = false; archiveRootNode = archiveRootNode; archiveRootNode.HighlightClassName += " trNdGpHdHl"; }); } else { archiveRootNode = FolderTreeNode.CreateFolderPickerDummyArchiveMailboxRootNode(userContext); } if (archiveRootNode != null) { folderPickerTree.RootNode.AddChild(archiveRootNode); } } if (requirePublicFolderTree && userContext.IsPublicFoldersAvailable()) { FolderTreeNode folderTreeNode3 = FolderTreeNode.CreatePublicFolderTreeRootNode(userContext); folderTreeNode3.IsExpanded = true; FolderTreeNode folderTreeNode4 = folderTreeNode3; folderTreeNode4.HighlightClassName += " trNdGpHdHl"; folderPickerTree.RootNode.AddChild(folderTreeNode3); } folderPickerTree.RootNode.IsExpanded = true; return(folderPickerTree); }