Ejemplo n.º 1
0
        // Token: 0x0600029D RID: 669 RVA: 0x00017554 File Offset: 0x00015754
        private void RenderFolder(StoreObjectId folderId, string folderDisplayName, int count, ContentCountDisplay contentCountDisplay, SecondaryNavigationArea secondaryNavigationArea, TextWriter writer)
        {
            UserContext userContext = this.owaContext.UserContext;

            writer.Write("<tr><td nowrap class=\"fld");
            if (this.selectedUsing == secondaryNavigationArea && folderId.Equals(this.selectedFolderId))
            {
                writer.Write(" sl");
            }
            if (count > 0)
            {
                writer.Write(" bld");
            }
            writer.Write("\"><a name=\"lnkFldr\" href=\"?ae=Folder&t=IPF.Note&id=");
            writer.Write(Utilities.UrlEncode(folderId.ToBase64String()));
            writer.Write("&slUsng=");
            writer.Write((int)secondaryNavigationArea);
            if (secondaryNavigationArea == SecondaryNavigationArea.Mru)
            {
                writer.Write("&mru=1");
            }
            writer.Write("\" title=\"");
            Utilities.HtmlEncode(folderDisplayName, writer);
            writer.Write("\">");
            writer.Write("<img src=\"");
            RenderingUtilities.RenderSpecialFolderIcon(writer, userContext, "IPF.Note", folderId);
            writer.Write("\" alt=\"\">");
            Utilities.CropAndRenderText(writer, folderDisplayName, 24);
            writer.Write(" </a>");
            if (count > 0)
            {
                if (contentCountDisplay == ContentCountDisplay.ItemCount)
                {
                    writer.Write("<span class=\"itm\">[");
                    writer.Write(count);
                    writer.Write("]</span>");
                }
                else if (contentCountDisplay == ContentCountDisplay.UnreadCount)
                {
                    writer.Write("<span class=\"unrd\">(");
                    writer.Write(count);
                    writer.Write(")</span>");
                }
            }
            writer.Write("</td></tr>");
        }