- Timestamp:
- 05/07/14 11:08:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/CheckedTransformationCollectionView.cs
r10786 r10806 21 21 22 22 using System; 23 using System.Collections;24 23 using System.Collections.Generic; 25 using System.Linq;26 24 using System.Reflection; 27 25 using System.Windows.Forms; … … 37 35 [Content(typeof(ICheckedItemCollection<ITransformation>), false)] 38 36 public partial class CheckedTransformationCollectionView : CheckedItemCollectionView<ITransformation> { 37 39 38 public CheckedTransformationCollectionView() { 40 39 InitializeComponent(); … … 52 51 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) { 53 52 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 57 57 return (ITransformation)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(new[] { columnNames }); 58 58 } catch (Exception ex) {
Note: See TracChangeset
for help on using the changeset viewer.