Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10899 for branches


Ignore:
Timestamp:
05/28/14 11:37:16 (10 years ago)
Author:
pfleck
Message:
  • Added Sorting Property to ItemCollectionView to allow disabling of automatic sorting when content changed.
Location:
branches/DataPreprocessing
Files:
2 edited

Legend:

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

    r10538 r10899  
    5858    }
    5959
     60    private SortOrder sorting = SortOrder.Ascending;
     61    public SortOrder Sorting {
     62      get { return sorting; }
     63      set { sorting = value; }
     64    }
     65
    6066    public ItemCollectionView() {
    6167      InitializeComponent();
     
    106112          AddListViewItem(CreateListViewItem(item));
    107113        AdjustListViewColumnSizes();
    108         SortItemsListView(SortOrder.Ascending);
     114        if (Sorting != SortOrder.None)
     115          SortItemsListView(Sorting);
    109116      }
    110117    }
     
    140147        try {
    141148          return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
    142         }
    143         catch (Exception ex) {
     149        } catch (Exception ex) {
    144150          ErrorHandling.ShowErrorDialog(this, ex);
    145151        }
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/CheckedTransformationCollectionView.cs

    r10806 r10899  
    3939      InitializeComponent();
    4040      itemsGroupBox.Text = "Transformations";
     41      Sorting = SortOrder.None;
    4142    }
    4243
Note: See TracChangeset for help on using the changeset viewer.