Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/13 15:59:19 (12 years ago)
Author:
ascheibe
Message:

#2064 merged into stable branch

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs

    r9456 r9559  
    4444      this.itemsListView.Columns.Add(new ColumnHeader("Date") { Text = "Date" });
    4545      this.itemsListView.Columns.Add(new ColumnHeader("Name") { Text = "Name" });
    46       foreach (ColumnHeader c in this.itemsListView.Columns) {
    47         c.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
    48       }
     46
    4947      this.itemsListView.HeaderStyle = ColumnHeaderStyle.Clickable;
    5048      this.itemsListView.FullRowSelect = true;
    5149
    5250      this.itemsListView.ListViewItemSorter = new ListViewItemDateComparer(0, SortOrder.Ascending);
    53       this.itemsListView.Sorting = SortOrder.Ascending;
    54       this.itemsListView.Sort();
    5551
    5652      progress = new Progress() {
     
    5955      };
    6056      progressView = new ProgressView(this, progress);
     57    }
     58
     59    protected override void SortItemsListView(SortOrder sortOrder) {
     60      if (itemsListView.Sorting == sortOrder || sortOrder == SortOrder.None) return;
     61      ((ListViewItemDateComparer)itemsListView.ListViewItemSorter).Order = sortOrder;
     62      itemsListView.Sorting = sortOrder;
     63      itemsListView.Sort();
     64      AdjustListViewColumnSizes();
    6165    }
    6266
Note: See TracChangeset for help on using the changeset viewer.