Exemplo n.º 1
0
 protected LegacyItemList(ViewDescriptor viewDescriptor, ColumnId sortedColumn, SortOrder sortOrder, UserContext userContext, SearchScope folderScope) : base(userContext)
 {
     this.viewDescriptor = viewDescriptor;
     this.sortedColumn   = ListViewColumns.GetColumn(sortedColumn);
     this.sortOrder      = sortOrder;
     this.folderScope    = folderScope;
     for (int i = 0; i < viewDescriptor.PropertyCount; i++)
     {
         base.AddProperty(viewDescriptor.GetProperty(i));
     }
 }
Exemplo n.º 2
0
 protected ItemList2(ViewDescriptor viewDescriptor, ColumnId sortedColumn, SortOrder sortOrder, UserContext userContext, SearchScope folderScope, bool renderLastModifiedTime) : base(userContext)
 {
     this.viewDescriptor         = viewDescriptor;
     this.sortedColumn           = ListViewColumns.GetColumn(sortedColumn);
     this.sortOrder              = sortOrder;
     this.folderScope            = folderScope;
     this.RenderLastModifiedTime = renderLastModifiedTime;
     if (folderScope != SearchScope.SelectedFolder && !(this is ConversationItemList2) && folderScope != SearchScope.SelectedFolder)
     {
         base.AddProperty(ItemSchema.ParentDisplayName);
     }
     for (int i = 0; i < viewDescriptor.PropertyCount; i++)
     {
         base.AddProperty(viewDescriptor.GetProperty(i));
     }
     if (this.RenderLastModifiedTime)
     {
         base.AddProperty(StoreObjectSchema.LastModifiedTime);
     }
 }
Exemplo n.º 3
0
 protected ListViewContents(ViewDescriptor viewDescriptor, ColumnId sortedColumn, SortOrder sortOrder, bool showFolderNameTooltip, UserContext userContext)
 {
     if (viewDescriptor == null)
     {
         throw new ArgumentNullException("viewDescriptor");
     }
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     this.userContext           = userContext;
     this.viewDescriptor        = viewDescriptor;
     this.sortedColumn          = ListViewColumns.GetColumn(sortedColumn);
     this.sortOrder             = sortOrder;
     this.showFolderNameTooltip = showFolderNameTooltip;
     for (int i = 0; i < viewDescriptor.PropertyCount; i++)
     {
         this.AddProperty(viewDescriptor.GetProperty(i));
     }
     if (showFolderNameTooltip)
     {
         this.AddProperty(ItemSchema.ParentDisplayName);
     }
 }