Esempio n. 1
0
        public void GetMailFolderTree()
        {
            ExTraceGlobals.UserOptionsCallTracer.TraceDebug((long)this.GetHashCode(), "OptionsEventHandler.GetMailFolderTree");
            FolderTree folderTree = MailboxFolderTree.CreateMailboxFolderTree(base.UserContext, base.UserContext.MailboxSession, FolderTreeRenderType.MailFolderWithoutSearchFolders, true);
            string     text       = "divFPErr";

            this.Writer.Write("<div id=\"divFPTrR\">");
            Infobar infobar = new Infobar(text, "infobar");

            infobar.Render(this.Writer);
            NavigationHost.RenderTreeRegionDivStart(this.Writer, null);
            NavigationHost.RenderTreeDivStart(this.Writer, "fptree");
            folderTree.ErrDiv = text;
            folderTree.Render(this.Writer);
            NavigationHost.RenderTreeDivEnd(this.Writer);
            NavigationHost.RenderTreeRegionDivEnd(this.Writer);
            this.Writer.Write("</div>");
        }
        public void GetFolderPickerTrees()
        {
            bool             requirePublicFolderTree = (bool)base.GetParameter("pTr");
            FolderPickerTree folderPickerTree        = FolderPickerTree.CreateFolderPickerTree(base.UserContext, requirePublicFolderTree);
            string           text = "divFPErr";

            this.Writer.Write("<div id=\"divFPTrR\">");
            Infobar infobar = new Infobar(text, "infobar");

            infobar.Render(this.Writer);
            NavigationHost.RenderTreeRegionDivStart(this.Writer, null);
            NavigationHost.RenderTreeDivStart(this.Writer, "fptree");
            folderPickerTree.ErrDiv = text;
            folderPickerTree.Render(this.Writer);
            NavigationHost.RenderTreeDivEnd(this.Writer);
            NavigationHost.RenderTreeRegionDivEnd(this.Writer);
            this.Writer.Write("</div>");
        }