Ejemplo n.º 1
0
        // Token: 0x06000295 RID: 661 RVA: 0x00016FE4 File Offset: 0x000151E4
        public MailSecondaryNavigation(OwaContext owaContext, StoreObjectId folderId, FolderList folderList, MruFolderList mruFolderList, SecondaryNavigationArea?selectedUsing) : base(owaContext, folderId)
        {
            UserContext userContext = owaContext.UserContext;

            if (mruFolderList == null)
            {
                mruFolderList = new MruFolderList(userContext);
            }
            this.mruFolderList = mruFolderList;
            if (selectedUsing != null)
            {
                this.selectedUsing = selectedUsing.Value;
            }
            else
            {
                MessageModuleViewState messageModuleViewState = userContext.LastClientViewState as MessageModuleViewState;
                if (messageModuleViewState != null)
                {
                    this.selectedUsing = messageModuleViewState.SelectedUsing;
                }
            }
            this.SetAllFolderNavigationEnabled();
            if (RenderingFlags.EnableAllFolderNavigation(userContext) && folderList == null)
            {
                folderList = new FolderList(userContext, userContext.MailboxSession, null, 1024, true, null, FolderList.FolderPropertiesInBasic);
            }
            this.folderList = folderList;
        }
Ejemplo n.º 2
0
        // Token: 0x06000296 RID: 662 RVA: 0x0001707C File Offset: 0x0001527C
        private void SetAllFolderNavigationEnabled()
        {
            HttpRequest request = this.owaContext.HttpContext.Request;

            if (Utilities.IsPostRequest(request))
            {
                string formParameter = Utilities.GetFormParameter(request, "hidactbrfld", false);
                if (formParameter == "1")
                {
                    RenderingFlags.EnableAllFolderNavigation(this.owaContext.UserContext, true);
                }
            }
        }
Ejemplo n.º 3
0
        // Token: 0x0600029B RID: 667 RVA: 0x0001739C File Offset: 0x0001559C
        private void RenderAllFolderNavigation(TextWriter writer)
        {
            UserContext userContext = this.owaContext.UserContext;

            writer.Write("<table cellspacing=0 cellpadding=0 class=\"brwst\">");
            writer.Write("<tr><td align=\"center\" nowrap>");
            if (RenderingFlags.EnableAllFolderNavigation(userContext))
            {
                writer.Write("<span class=\"brws ");
                if (this.selectedUsing == SecondaryNavigationArea.BrowseAll)
                {
                    writer.Write("sl");
                }
                writer.Write("\">");
                FolderDropdown folderDropdown   = new FolderDropdown(userContext);
                StoreObjectId  selectedFolderId = null;
                if (this.selectedUsing == SecondaryNavigationArea.BrowseAll)
                {
                    selectedFolderId = this.selectedFolderId;
                }
                folderDropdown.RenderAllFolderSelectInMailSecondaryNavigation(this.folderList, selectedFolderId, writer);
                writer.Write("<a href=\"#\" id=\"lnkGotoFldr\" onClick=\"return onClkBrwsFldNv();\"><img src=\"");
                userContext.RenderThemeFileUrl(writer, ThemeFileId.Go2);
                writer.Write("\" alt=\"");
                writer.Write(LocalizedStrings.GetHtmlEncoded(1053153637));
                writer.Write("\"></a></span>");
            }
            else
            {
                writer.Write("<a class=\"lnk\" id=\"lnkBrwsAllFldrs\" href=\"#\" onClick=\"return onClkBrwsFld();\">");
                writer.Write(LocalizedStrings.GetHtmlEncoded(-2125794143));
                writer.Write("<img src=\"");
                userContext.RenderThemeFileUrl(writer, ThemeFileId.Expand);
                writer.Write("\" alt=\"\"></a>");
            }
            writer.Write("</td></tr></table>");
            writer.Write("<input type=\"hidden\" name=\"hidactbrfld\" value=\"\">");
        }
Ejemplo n.º 4
0
 // Token: 0x060003B3 RID: 947 RVA: 0x00021890 File Offset: 0x0001FA90
 public static bool EnableAllFolderNavigation(UserContext userContext)
 {
     return(RenderingFlags.GetFlag(userContext, RenderingFlags.Flags.EnableAllFolderNavigation));
 }
Ejemplo n.º 5
0
 // Token: 0x060003B6 RID: 950 RVA: 0x000218AC File Offset: 0x0001FAAC
 public static void HideOutOfOfficeInfoBar(UserContext userContext, bool value)
 {
     RenderingFlags.SetFlag(userContext, RenderingFlags.Flags.HideOutOfOfficeInfobar, value);
 }
Ejemplo n.º 6
0
 // Token: 0x060003B5 RID: 949 RVA: 0x000218A2 File Offset: 0x0001FAA2
 public static void EnableAllFolderNavigation(UserContext userContext, bool value)
 {
     RenderingFlags.SetFlag(userContext, RenderingFlags.Flags.EnableAllFolderNavigation, value);
 }
Ejemplo n.º 7
0
 // Token: 0x060003B4 RID: 948 RVA: 0x00021899 File Offset: 0x0001FA99
 public static bool HideOutOfOfficeInfoBar(UserContext userContext)
 {
     return(RenderingFlags.GetFlag(userContext, RenderingFlags.Flags.HideOutOfOfficeInfobar));
 }