Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/14 15:18:41 (10 years ago)
Author:
pfleck
Message:
  • Implemented handling of transformation error messages.
File:
1 edited

Legend:

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

    r10814 r10819  
    2222using System;
    2323using System.Windows.Forms;
    24 using HeuristicLab.Data;
    2524using HeuristicLab.MainForm;
    2625using HeuristicLab.MainForm.WindowsForms;
     
    5453
    5554      var transformator = new PreprocessingTransformator(Content.Data);
    56       bool success = transformator.ApplyTransformations(transformations);
     55      string errorMsg;
     56      bool success = transformator.ApplyTransformations(transformations, out errorMsg);
    5757      if (success) {
    58         //foreach (var transformation in transformations)
    59         //  Content.CheckedTransformationCollection.SetItemCheckedState(transformation, false);
    6058        Content.CheckedTransformationCollection.Clear();
    6159        MessageBox.Show(this, "Transformations applied.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
     60      } else {
     61        MessageBox.Show(this,
     62          "Error in Transformation.\nValue is copied when transformion of cell failed.\n" + errorMsg,
     63          "Transformation failed", MessageBoxButtons.OK, MessageBoxIcon.Warning);
    6264      }
     65
    6366    }
    6467  }
Note: See TracChangeset for help on using the changeset viewer.