Changeset 9523 for trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs
- Timestamp:
- 05/24/13 14:17:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs
r9456 r9523 44 44 this.itemsListView.Columns.Add(new ColumnHeader("Date") { Text = "Date" }); 45 45 this.itemsListView.Columns.Add(new ColumnHeader("Name") { Text = "Name" }); 46 foreach (ColumnHeader c in this.itemsListView.Columns) { 47 c.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 48 } 46 49 47 this.itemsListView.HeaderStyle = ColumnHeaderStyle.Clickable; 50 48 this.itemsListView.FullRowSelect = true; 51 49 52 50 this.itemsListView.ListViewItemSorter = new ListViewItemDateComparer(0, SortOrder.Ascending); 53 this.itemsListView.Sorting = SortOrder.Ascending;54 this.itemsListView.Sort();55 51 56 52 progress = new Progress() { … … 59 55 }; 60 56 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 base.SortItemsListView(sortOrder); 63 AdjustListViewColumnSizes(); 61 64 } 62 65
Note: See TracChangeset
for help on using the changeset viewer.