Changeset 10902 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/TransformationView.cs
- Timestamp:
- 05/28/14 14:12:29 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/TransformationView.cs
r10819 r10902 21 21 22 22 using System; 23 using System.Linq; 23 24 using System.Windows.Forms; 24 25 using HeuristicLab.MainForm; … … 43 44 base.OnContentChanged(); 44 45 if (Content == null) { 45 transformation CollectionView.Content = null;46 transformationListView.Content = null; 46 47 } else { 47 transformation CollectionView.Content = Content.CheckedTransformationCollection;48 transformationListView.Content = Content.CheckedTransformationList; 48 49 } 49 50 } 50 51 51 52 private void applyButton_Click(object sender, EventArgs e) { 52 var transformations = Content.CheckedTransformation Collection.CheckedItems;53 var transformations = Content.CheckedTransformationList.CheckedItems.Select(x => x.Value); 53 54 54 55 var transformator = new PreprocessingTransformator(Content.Data); … … 56 57 bool success = transformator.ApplyTransformations(transformations, out errorMsg); 57 58 if (success) { 58 Content.CheckedTransformation Collection.Clear();59 Content.CheckedTransformationList.Clear(); 59 60 MessageBox.Show(this, "Transformations applied.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); 60 61 } else {
Note: See TracChangeset
for help on using the changeset viewer.