Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/14 14:40:57 (10 years ago)
Author:
tsteinre
Message:
  • added messagebox for displaying a warning: Missing Column Parameter in a Transformation
File:
1 edited

Legend:

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

    r10902 r10945  
    2525using HeuristicLab.MainForm;
    2626using HeuristicLab.MainForm.WindowsForms;
     27using HeuristicLab.Problems.DataAnalysis.Transformations;
    2728
    2829namespace HeuristicLab.DataPreprocessing.Views {
     
    5354      var transformations = Content.CheckedTransformationList.CheckedItems.Select(x => x.Value);
    5455
     56      if (transformations.Any(x => ((Transformation)x).ColumnParameter.Value == null)) {
     57        MessageBox.Show(this, "Parameter \"Column\" of a selected Transformation is not set.", "Applying Transformations...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     58        return;
     59      }
     60
    5561      var transformator = new PreprocessingTransformator(Content.Data);
    5662      string errorMsg;
     
    6470          "Transformation failed", MessageBoxButtons.OK, MessageBoxIcon.Warning);
    6571      }
    66 
    6772    }
    6873  }
Note: See TracChangeset for help on using the changeset viewer.