Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10345


Ignore:
Timestamp:
01/15/14 16:47:23 (11 years ago)
Author:
sbreuer
Message:
  • disable apply sort button if nothing to do
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataGridContentView.cs

    r10317 r10345  
    66using HeuristicLab.Problems.DataAnalysis;
    77using HeuristicLab.Data.Views;
     8using System.Collections.Generic;
     9using System.Linq;
    810
    911namespace HeuristicLab.DataPreprocessing {
     
    4648      OnContentChanged();
    4749    }
     50
     51    protected override int[] Sort(IEnumerable<KeyValuePair<int, SortOrder>> sortedColumns) {
     52      btnApplySort.Enabled = sortedColumns.Any();
     53      return base.Sort(sortedColumns);
     54    }
     55
     56    protected override void ClearSorting() {
     57      btnApplySort.Enabled = false;
     58      base.ClearSorting();
     59    }
    4860  }
    4961}
Note: See TracChangeset for help on using the changeset viewer.