Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/14 15:56:31 (11 years ago)
Author:
pfleck
Message:
  • Implemented PreprocessingTransformator to apply Transformations.
File:
1 edited

Legend:

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

    r10772 r10786  
    2020#endregion
    2121
     22using System;
    2223using HeuristicLab.MainForm;
    2324using HeuristicLab.MainForm.WindowsForms;
    24 using HeuristicLab.Problems.DataAnalysis.Transformations;
    2525
    2626namespace HeuristicLab.DataPreprocessing.Views {
     
    2929  [Content(typeof(TransformationContent), true)]
    3030  public partial class TransformationView : AsynchronousContentView {
     31
    3132    public TransformationView() {
    3233      InitializeComponent();
     
    4647      }
    4748    }
     49
     50    private void applyButton_Click(object sender, EventArgs e) {
     51      var transformations = Content.CheckedTransformationCollection.CheckedItems;
     52
     53      var transformator = new PreprocessingTransformator(Content.Data);
     54      bool success = transformator.ApplyTransformations(transformations);
     55      if (success) {
     56        Content.CheckedTransformationCollection.Clear();
     57      }
     58    }
    4859  }
    4960}
Note: See TracChangeset for help on using the changeset viewer.