Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/28/14 14:12:29 (10 years ago)
Author:
pfleck
Message:
  • Removed sorting of ItemCollectionView and used ItemListView instead.
File:
1 edited

Legend:

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

    r10819 r10902  
    2121
    2222using System;
     23using System.Linq;
    2324using System.Windows.Forms;
    2425using HeuristicLab.MainForm;
     
    4344      base.OnContentChanged();
    4445      if (Content == null) {
    45         transformationCollectionView.Content = null;
     46        transformationListView.Content = null;
    4647      } else {
    47         transformationCollectionView.Content = Content.CheckedTransformationCollection;
     48        transformationListView.Content = Content.CheckedTransformationList;
    4849      }
    4950    }
    5051
    5152    private void applyButton_Click(object sender, EventArgs e) {
    52       var transformations = Content.CheckedTransformationCollection.CheckedItems;
     53      var transformations = Content.CheckedTransformationList.CheckedItems.Select(x => x.Value);
    5354
    5455      var transformator = new PreprocessingTransformator(Content.Data);
     
    5657      bool success = transformator.ApplyTransformations(transformations, out errorMsg);
    5758      if (success) {
    58         Content.CheckedTransformationCollection.Clear();
     59        Content.CheckedTransformationList.Clear();
    5960        MessageBox.Show(this, "Transformations applied.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
    6061      } else {
Note: See TracChangeset for help on using the changeset viewer.