Ejemplo n.º 1
0
 // Token: 0x06001D69 RID: 7529 RVA: 0x000A9C14 File Offset: 0x000A7E14
 private void RenderRowStart(TextWriter writer, int rowNumber, bool shouldGreyOut, bool hasEmailAddress)
 {
     writer.Write("<div id=\"");
     writer.Write((rowNumber == 1) ? "vr" : "sr");
     writer.Write("\"");
     base.RenderItemTooltip(writer);
     writer.Write(" class=\" r" + rowNumber);
     if (shouldGreyOut)
     {
         writer.Write(" grey");
     }
     writer.Write("\"");
     if (rowNumber == 1)
     {
         writer.Write("><div class=\"cData\"");
         ItemList2.RenderRowId(writer, this.DataSource.GetItemId());
         this.RenderItemMetaDataExpandos(writer);
         if (!hasEmailAddress)
         {
             writer.Write(" _em=0");
         }
         writer.Write("></div>");
         return;
     }
     writer.Write(">");
 }
Ejemplo n.º 2
0
        // Token: 0x060025EF RID: 9711 RVA: 0x000DBA3C File Offset: 0x000D9C3C
        public TimeGroupByList2(ColumnId sortedColumn, SortOrder sortOrder, ItemList2 itemList, UserContext userContext) : base(sortedColumn, sortOrder, itemList, userContext)
        {
            List <TimeRange> timeRanges = TimeRange.GetTimeRanges(userContext);

            TimeGroupByList2.TimeGroupRange[] array = new TimeGroupByList2.TimeGroupRange[timeRanges.Count];
            for (int i = 0; i < timeRanges.Count; i++)
            {
                array[i] = new TimeGroupByList2.TimeGroupRange(timeRanges[i]);
                if (timeRanges[i].Range == TimeRange.RangeId.Today)
                {
                    this.todayIndex = i;
                }
            }
            base.SetGroupRange(array);
        }
 protected override void ValidatedRender(TextWriter writer, int startRange, int endRange)
 {
     writer.Write("<div class=\"baseIL\" id=\"");
     writer.Write("divVLVIL");
     writer.Write("\">");
     this.DataSource.MoveToItem(startRange);
     while (this.DataSource.CurrentItem <= endRange)
     {
         writer.Write("<div class=\"listItemRow");
         this.RenderItemRowStyle(writer);
         writer.Write("\"");
         base.RenderItemTooltip(writer);
         writer.Write(" id=\"");
         writer.Write(base.IsForVirtualListView ? "vr" : "us");
         writer.Write("\">");
         writer.Write("<div class=\"cData\"");
         ItemList2.RenderRowId(writer, this.DataSource.GetItemId());
         this.RenderItemMetaDataExpandos(writer);
         writer.Write("></div>");
         for (int i = 0; i < this.ViewDescriptor.ColumnCount; i++)
         {
             ColumnId column = this.ViewDescriptor.GetColumn(i);
             writer.Write("<div class=\"listColumn ");
             writer.Write(this.ColumnClassPrefix);
             writer.Write(column.ToString());
             writer.Write("\"");
             this.RenderTableCellAttributes(writer, column);
             if (column == ColumnId.FlagDueDate || column == ColumnId.ContactFlagDueDate || column == ColumnId.TaskFlag)
             {
                 writer.Write(" id=");
                 writer.Write("divFlg");
             }
             if (column == ColumnId.Categories || column == ColumnId.ContactCategories)
             {
                 writer.Write(" id=");
                 writer.Write("divCat");
             }
             writer.Write(">");
             base.RenderColumn(writer, column, false);
             writer.Write("</div>");
         }
         base.RenderSelectionImage(writer);
         base.RenderRowDivider(writer);
         writer.Write("</div>");
         this.DataSource.MoveNext();
     }
     writer.Write("</div>");
 }
Ejemplo n.º 4
0
        // Token: 0x0600212D RID: 8493 RVA: 0x000BE964 File Offset: 0x000BCB64
        internal GroupByList2(ColumnId groupByColumn, SortOrder sortOrder, ItemList2 itemList, UserContext userContext) : base(userContext)
        {
            this.groupByColumn = ListViewColumns.GetColumn(groupByColumn);
            this.sortOrder     = sortOrder;
            this.itemList      = itemList;
            IDictionaryEnumerator enumerator = itemList.Properties.GetEnumerator();

            while (enumerator.MoveNext())
            {
                base.AddProperty((PropertyDefinition)enumerator.Key);
            }
            for (int i = 0; i < this.groupByColumn.PropertyCount; i++)
            {
                base.AddProperty(this.groupByColumn[i]);
            }
        }
        // Token: 0x0600213D RID: 8509 RVA: 0x000BF29C File Offset: 0x000BD49C
        public FlagGroupByList2(ColumnId sortedColumn, SortOrder sortOrder, ItemList2 itemList, UserContext userContext) : base(sortedColumn, sortOrder, itemList, userContext)
        {
            bool             isDueDate  = sortedColumn == ColumnId.FlagDueDate || sortedColumn == ColumnId.ContactFlagDueDate;
            List <TimeRange> timeRanges = TimeRange.GetTimeRanges(userContext);

            FlagGroupByList2.FlagGroupRange[] array = new FlagGroupByList2.FlagGroupRange[timeRanges.Count + 2];
            int num = 0;

            array[num++] = new FlagGroupByList2.FlagGroupRange(null, FlagStatus.NotFlagged, isDueDate);
            array[num++] = new FlagGroupByList2.FlagGroupRange(null, FlagStatus.Complete, isDueDate);
            int num2 = timeRanges.Count - 1;

            while (0 <= num2)
            {
                array[num++] = new FlagGroupByList2.FlagGroupRange(timeRanges[num2], FlagStatus.Flagged, isDueDate);
                num2--;
            }
            base.SetGroupRange(array);
        }
        // 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>");
                }
            }
        }
Ejemplo n.º 7
0
        // Token: 0x06001F8B RID: 8075 RVA: 0x000B5938 File Offset: 0x000B3B38
        private void RenderConversationPartRow(TextWriter writer, Folder contextFolder, Folder dataFolder, ExDateTime?lastDeliveryTime, int maximumIndentLevel)
        {
            IConversationTreeNode currentNode = this.ConversationPartsDataSource.GetCurrentNode();

            if (!ConversationUtilities.ShouldRenderItem(currentNode, (MailboxSession)dataFolder.Session))
            {
                return;
            }
            StoreObjectId itemProperty = this.DataSource.GetItemProperty <StoreObjectId>(StoreObjectSchema.ParentItemId);
            bool          flag         = (bool)this.DataSource.GetItemProperty <object>(MessageItemSchema.IsRead);
            bool          flag2        = !ConversationUtilities.IsLocalNode(currentNode);
            bool          flag3        = Utilities.IsDefaultFolderId((MailboxSession)dataFolder.Session, itemProperty, DefaultFolderType.DeletedItems);

            writer.Write("<div id=\"");
            writer.Write("ver");
            writer.Write("\" class=\"");
            writer.Write(flag2 ? "df " : string.Empty);
            writer.Write(flag ? string.Empty : "ur");
            writer.Write((this.DataSource.CurrentItem == this.DataSource.EndRange) ? " eclr" : string.Empty);
            writer.Write("\">");
            writer.Write("<div class=cData");
            ItemList2.RenderRowId(writer, this.DataSource.GetItemId());
            this.RenderConversationPartMetaDataExpandos(writer, currentNode, dataFolder, itemProperty, lastDeliveryTime);
            writer.Write(">");
            writer.Write("</div>");
            int num2;

            if (this.ConversationPartsDataSource.SortOrder == ConversationTreeSortOrder.DeepTraversalAscending || this.ConversationPartsDataSource.SortOrder == ConversationTreeSortOrder.DeepTraversalDescending)
            {
                IConversationTreeNode conversationTreeNode = currentNode;
                int num = 0;
                while (conversationTreeNode != null && num < maximumIndentLevel)
                {
                    num++;
                    conversationTreeNode = conversationTreeNode.ParentNode;
                }
                num2 = num * 4 + 18;
            }
            else
            {
                num2 = 22;
            }
            writer.Write("<div class=expc2 style=\"");
            writer.Write(base.UserContext.IsRtl ? "right:" : "left:");
            writer.Write(num2);
            writer.Write("px;width:");
            writer.Write(20);
            writer.Write("px;\">");
            base.RenderMessageIcon(writer);
            writer.Write("</div>");
            writer.Write("<div class=expc3 style=\"");
            writer.Write(base.UserContext.IsRtl ? "right:" : "left:");
            writer.Write(num2 + 20);
            writer.Write("px;\">");
            if (flag3)
            {
                writer.Write("<strike>");
            }
            base.RenderColumn(writer, ColumnId.From);
            if (flag3)
            {
                writer.Write("</strike>");
            }
            writer.Write("</div>");
            if (flag2)
            {
                base.UserContext.ClearFolderNameCache();
                writer.Write("<div class=\"expc4 df\">");
                base.RenderVLVAnchorOpen(writer);
                writer.Write(Utilities.HtmlEncode(base.UserContext.GetCachedFolderName(itemProperty, (MailboxSession)dataFolder.Session)));
                base.RenderVLVAnchorClose(writer);
                writer.Write("</div>");
            }
            else
            {
                writer.Write("<div class=\"expc4 r\">");
                base.RenderColumn(writer, ColumnId.DeliveryTime);
                writer.Write("</div>");
            }
            FlagStatus itemProperty2 = this.DataSource.GetItemProperty <FlagStatus>(ItemSchema.FlagStatus, FlagStatus.NotFlagged);

            writer.Write("<div class=\"c7");
            if (itemProperty2 != FlagStatus.NotFlagged)
            {
                writer.Write(" stky");
            }
            writer.Write("\" id=");
            writer.Write("divFlg");
            writer.Write(">");
            base.RenderColumn(writer, ColumnId.FlagDueDate);
            writer.Write("</div>");
            string[] itemProperty3 = this.DataSource.GetItemProperty <string[]>(ItemSchema.Categories, 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.Categories);
            writer.Write("</div>");
            writer.Write("<div class=c5 style=\"text-decoration:none;\">");
            bool flag4 = base.RenderColumn(writer, ColumnId.Importance, false);

            base.RenderColumn(writer, ColumnId.HasAttachment, !flag4);
            writer.Write("</div>");
            base.RenderSelectionImage(writer);
            writer.Write("</div>");
        }
Ejemplo n.º 8
0
 public SizeGroupByList2(SortOrder sortOrder, ItemList2 itemList, UserContext userContext) : base(ColumnId.Size, sortOrder, itemList, userContext)
 {
     base.SetGroupRange(SizeGroupByList2.sizeGroupRange);
 }
Ejemplo n.º 9
0
 private void RenderRow(TextWriter writer, bool showFlag, bool showCategories, ListViewContents2.ListViewRowType rowTypeToRender, bool renderContainer)
 {
     if (rowTypeToRender != ListViewContents2.ListViewRowType.RenderOnlyRow2)
     {
         if (renderContainer)
         {
             writer.Write("<div id=\"");
             writer.Write("vr");
             writer.Write("\"");
             base.RenderItemTooltip(writer);
             bool itemProperty = this.DataSource.GetItemProperty <bool>(MessageItemSchema.IsRead, true);
             writer.Write(" class=\"r1");
             if (!itemProperty)
             {
                 writer.Write(" ur");
             }
             writer.Write("\">");
         }
         writer.Write("<div class=\"cData\"");
         ItemList2.RenderRowId(writer, this.DataSource.GetItemId());
         ItemList2.RenderInstanceKey(writer, Convert.ToBase64String(this.DataSource.GetItemProperty <byte[]>(ItemSchema.InstanceKey)));
         base.RenderMessageViewItemMetaDataExpandos(writer);
         writer.Write("></div><div class=\"c1\">");
         base.RenderColumn(writer, ColumnId.MailIcon);
         writer.Write("</div>");
         writer.Write("<div id=\"divSenderList\" class=\"c2 pd nowrap\">");
         if (base.Properties.ContainsKey(ItemSchema.SentRepresentingDisplayName))
         {
             base.RenderColumn(writer, ColumnId.From);
         }
         else if (base.Properties.ContainsKey(ItemSchema.DisplayTo))
         {
             base.RenderColumn(writer, ColumnId.To);
         }
         writer.Write("</div>");
         if (showFlag)
         {
             FlagStatus itemProperty2 = this.DataSource.GetItemProperty <FlagStatus>(ItemSchema.FlagStatus, FlagStatus.NotFlagged);
             writer.Write("<div id=\"");
             writer.Write("divFlg");
             writer.Write("\" class=\"c5");
             if (itemProperty2 != FlagStatus.NotFlagged)
             {
                 writer.Write(" stky");
             }
             writer.Write("\">");
             base.RenderColumn(writer, ColumnId.FlagDueDate);
             writer.Write("</div>");
         }
         if (showCategories)
         {
             string[] itemProperty3 = this.DataSource.GetItemProperty <string[]>(ItemSchema.Categories, null);
             writer.Write("<div class=\"c4 taR");
             if (itemProperty3 != null && itemProperty3.Length > 0)
             {
                 writer.Write(" stky");
             }
             writer.Write("\" id=\"");
             writer.Write("divCat");
             writer.Write("\">");
             base.RenderColumn(writer, ColumnId.Categories);
             writer.Write("</div>");
         }
         writer.Write("<div class=\"c3 pl nowrap\">");
         bool flag = base.RenderColumn(writer, ColumnId.Importance, false);
         base.RenderColumn(writer, ColumnId.HasAttachment, !flag);
         writer.Write("</div>");
         base.RenderSelectionImage(writer);
         base.RenderRowDivider(writer);
         if (renderContainer)
         {
             writer.Write("</div>");
         }
     }
     if (rowTypeToRender != ListViewContents2.ListViewRowType.RenderOnlyRow1)
     {
         if (renderContainer)
         {
             writer.Write("<div id=\"");
             writer.Write("sr");
             writer.Write("\" class=\"r2\">");
         }
         writer.Write("<div id=\"divSubject\" class=\"c2 pd nowrap\">");
         base.RenderColumn(writer, ColumnId.Subject);
         writer.Write("</div>");
         writer.Write("<div class=\"nowrap taR c3\">");
         if (base.Properties.ContainsKey(ItemSchema.ReceivedTime))
         {
             base.RenderColumn(writer, ColumnId.DeliveryTime);
         }
         else if (base.Properties.ContainsKey(ItemSchema.SentTime))
         {
             base.RenderColumn(writer, ColumnId.SentTime);
         }
         else if (base.Properties.ContainsKey(StoreObjectSchema.LastModifiedTime))
         {
             base.RenderColumn(writer, ColumnId.DeletedOnTime);
         }
         writer.Write("</div>");
         base.RenderSelectionImage(writer);
         if (renderContainer)
         {
             writer.Write("</div>");
         }
     }
 }