コード例 #1
0
        // Token: 0x06001F50 RID: 8016 RVA: 0x000B3FDC File Offset: 0x000B21DC
        internal override void RenderRow(TextWriter writer, bool showFlag, ListViewContents2.ListViewRowType rowTypeToRender, bool renderContainer)
        {
            int itemProperty           = this.DataSource.GetItemProperty <int>(ConversationItemSchema.ConversationUnreadMessageCount, 0);
            IList <StoreObjectId> list = this.DataSource.GetItemProperty <StoreObjectId[]>(ConversationItemSchema.ConversationGlobalItemIds, null);

            list = ConversationUtilities.ExcludeFolders(list, this.ExcludedFolderIds);
            int count = list.Count;

            this.currentRowGlobalCount = count;
            if (rowTypeToRender != ListViewContents2.ListViewRowType.RenderOnlyRow2)
            {
                if (renderContainer)
                {
                    writer.Write("<div id=\"");
                    writer.Write("vr");
                    writer.Write("\">");
                }
                writer.Write("<div class=\"cData\"");
                ItemList2.RenderRowId(writer, this.DataSource.GetItemId());
                ItemList2.RenderInstanceKey(writer, Convert.ToBase64String(this.DataSource.GetItemProperty <byte[]>(ItemSchema.InstanceKey)));
                this.RenderConversationMetaDataExpandos(writer, count, list);
                writer.Write(">");
                writer.Write("</div>");
                writer.Write("<div class=c1 id=");
                writer.Write("divExp");
                writer.Write(">");
                if (count > 1)
                {
                    if (base.UserContext.IsRtl)
                    {
                        base.UserContext.RenderThemeImage(writer, ThemeFileId.PlusRTL);
                    }
                    else
                    {
                        base.UserContext.RenderThemeImage(writer, ThemeFileId.Plus);
                    }
                }
                writer.Write("<img id=imgPrg style=\"display:none\" src=\"");
                base.UserContext.RenderThemeFileUrl(writer, ThemeFileId.ProgressSmall);
                writer.Write("\">");
                writer.Write("</div>");
                writer.Write("<div class=c2>");
                base.RenderColumn(writer, ColumnId.ConversationIcon, true);
                base.RenderCheckbox(writer);
                writer.Write("</div>");
                writer.Write("<div id=\"");
                writer.Write("divSubject");
                writer.Write("\" class=\"c3");
                if (itemProperty > 0)
                {
                    writer.Write(" ur");
                }
                writer.Write("\">");
                base.RenderColumn(writer, ColumnId.ConversationSubject, true);
                writer.Write("</div>");
                writer.Write("<div id=");
                writer.Write("divUC");
                writer.Write(" class=c4>");
                base.RenderColumn(writer, ColumnId.ConversationUnreadCount, true);
                writer.Write("</div>");
                FlagStatus itemProperty2 = (FlagStatus)this.DataSource.GetItemProperty <int>(ConversationItemSchema.ConversationFlagStatus, 0);
                writer.Write("<div class=\"c7");
                if (itemProperty2 != FlagStatus.NotFlagged)
                {
                    writer.Write(" stky");
                }
                writer.Write("\" id=");
                writer.Write("divFlg");
                writer.Write(">");
                base.RenderColumn(writer, ColumnId.ConversationFlagDueDate, true);
                writer.Write("</div>");
                string[] itemProperty3 = this.DataSource.GetItemProperty <string[]>(ConversationItemSchema.ConversationCategories, null);
                writer.Write("<div class=\"r c6");
                if (itemProperty3 != null && itemProperty3.Length > 0)
                {
                    writer.Write(" stky");
                }
                writer.Write("\" id=");
                writer.Write("divCat");
                writer.Write(">");
                base.RenderColumn(writer, ColumnId.ConversationCategories, true);
                writer.Write("</div>");
                writer.Write("<div class=c5 >");
                bool flag = base.RenderColumn(writer, ColumnId.ConversationImportance, false);
                base.RenderColumn(writer, ColumnId.ConversationHasAttachment, !flag);
                writer.Write("</div>");
                base.RenderSelectionImage(writer);
                base.UserContext.RenderThemeImage(writer, ThemeFileId.Clear1x1, "expSelBg", new object[0]);
                base.RenderRowDivider(writer);
                if (renderContainer)
                {
                    writer.Write("</div>");
                }
            }
            if (rowTypeToRender != ListViewContents2.ListViewRowType.RenderOnlyRow1)
            {
                if (renderContainer)
                {
                    writer.Write("<div id=");
                    writer.Write("sr");
                    writer.Write(">");
                }
                writer.Write("<div id=\"");
                writer.Write("divSenderList");
                writer.Write("\" class=c2>");
                base.RenderColumn(writer, this.participantColumnId, true);
                writer.Write("</div>");
                writer.Write("<div id=\"");
                writer.Write("divDateTime");
                writer.Write("\" class=\"c3\">");
                base.RenderColumn(writer, ColumnId.ConversationLastDeliveryTime, true);
                writer.Write("</div>");
                base.RenderSelectionImage(writer);
                if (renderContainer)
                {
                    writer.Write("</div>");
                }
            }
        }