protected override void RenderFooter(TextWriter output) { if (this.userContext.IsFeatureEnabled(Feature.AddressLists) && this.userContext.GlobalAddressListInfo.Origin == GlobalAddressListInfo.GalOrigin.DefaultGlobalAddressList) { SecondaryNavigationDirectoryList.RenderMoreOrLess(output, this.userContext, true, ThemeFileId.Expand); SecondaryNavigationDirectoryList.RenderMoreOrLess(output, this.userContext, false, ThemeFileId.Collapse); output.Write("<div id=\"divAllAL\" style=\"display:none\"></div>"); } }
public static SecondaryNavigationDirectoryList CreateCondensedDirectoryList(UserContext userContext, bool isRoomPicker) { SecondaryNavigationDirectoryList secondaryNavigationDirectoryList = new SecondaryNavigationDirectoryList(userContext); secondaryNavigationDirectoryList.AddEntry(userContext.GlobalAddressListInfo.DisplayName, userContext.GlobalAddressListInfo.ToBase64String(), !isRoomPicker, false); if (DirectoryAssistance.IsRoomsAddressListAvailable(userContext) && userContext.AllRoomsAddressBookInfo != null && !userContext.AllRoomsAddressBookInfo.IsEmpty) { secondaryNavigationDirectoryList.AddEntry(userContext.AllRoomsAddressBookInfo.DisplayName, userContext.AllRoomsAddressBookInfo.ToBase64String(), isRoomPicker, true); } return(secondaryNavigationDirectoryList); }
public static SecondaryNavigationDirectoryList CreateExtendedDirectoryList(UserContext userContext) { SecondaryNavigationDirectoryList secondaryNavigationDirectoryList = new SecondaryNavigationDirectoryList(userContext); AddressBookBase[] allAddressBooks = DirectoryAssistance.GetAllAddressBooks(userContext); for (int i = 0; i < allAddressBooks.Length; i++) { if (!string.Equals(allAddressBooks[i].Base64Guid, userContext.GlobalAddressListInfo.ToBase64String(), StringComparison.Ordinal) && (userContext.AllRoomsAddressBookInfo == null || !string.Equals(allAddressBooks[i].Base64Guid, userContext.AllRoomsAddressBookInfo.ToBase64String(), StringComparison.Ordinal))) { secondaryNavigationDirectoryList.AddEntry(allAddressBooks[i].DisplayName, allAddressBooks[i].Base64Guid, false, false); } } return(secondaryNavigationDirectoryList); }