Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10806 for branches


Ignore:
Timestamp:
05/07/14 11:08:55 (11 years ago)
Author:
pfleck
Message:
  • Provide Transofmations with available column names.
File:
1 edited

Legend:

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

    r10786 r10806  
    2121
    2222using System;
    23 using System.Collections;
    2423using System.Collections.Generic;
    25 using System.Linq;
    2624using System.Reflection;
    2725using System.Windows.Forms;
     
    3735  [Content(typeof(ICheckedItemCollection<ITransformation>), false)]
    3836  public partial class CheckedTransformationCollectionView : CheckedItemCollectionView<ITransformation> {
     37
    3938    public CheckedTransformationCollectionView() {
    4039      InitializeComponent();
     
    5251      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
    5352        try {
    54           // TODO:
    55           var columnNames = Enumerable.Range(0, 10).Select(i => "x" + i);
    56           //var columnNames = new[] { "dummy", "target" }.AsEnumerable();
     53          // TODO: Avoid accessing parent view
     54          var transformationView = (TransformationView)Parent;
     55          var columnNames = transformationView.Content.Data.VariableNames;
     56
    5757          return (ITransformation)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(new[] { columnNames });
    5858        } catch (Exception ex) {
Note: See TracChangeset for help on using the changeset viewer.