Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8702 for trunk


Ignore:
Timestamp:
09/27/12 11:44:01 (12 years ago)
Author:
ascheibe
Message:

#1959 added a comparer for sorting the jobs in the Hive Job Manager by date

Location:
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/HeuristicLab.Clients.Hive.JobManager-3.3.csproj

    r8600 r8702  
    9797  <ItemGroup>
    9898    <Compile Include="ExtensionMethods\TreeNodeExtensions.cs" />
     99    <Compile Include="ListViewDateComparer.cs" />
    99100    <Compile Include="Plugin.cs" />
    100101    <Compile Include="Views\HiveJobManagerView.cs">
     
    227228  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    228229  <PropertyGroup>
    229    <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
     230    <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    230231set ProjectDir=$(ProjectDir)
    231232set SolutionDir=$(SolutionDir)
     
    233234
    234235call PreBuildEvent.cmd</PreBuildEvent>
    235 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
     236    <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    236237export ProjectDir=$(ProjectDir)
    237238export SolutionDir=$(SolutionDir)
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs

    r7259 r8702  
    4343      this.itemsListView.HeaderStyle = ColumnHeaderStyle.Clickable;
    4444      this.itemsListView.FullRowSelect = true;
     45
     46      this.itemsListView.ListViewItemSorter = new ListViewDateComparer(0, SortOrder.Ascending);
    4547      this.itemsListView.Sorting = SortOrder.Ascending;
    4648      this.itemsListView.Sort();
     
    5860        System.Windows.Forms.ListView.SelectedListViewItemCollection selectedItems = itemsListView.SelectedItems;
    5961        bool inProgress = false;
    60         foreach (ListViewItem item in selectedItems) {                                 
     62        foreach (ListViewItem item in selectedItems) {
    6163          RefreshableJob job = item.Tag as RefreshableJob;
    6264          if (job != null && job.IsProgressing) {
Note: See TracChangeset for help on using the changeset viewer.