Changeset 10540 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationSolutionView.cs
- Timestamp:
- 03/05/14 15:08:11 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationSolutionView.cs
r10175 r10540 20 20 #endregion 21 21 22 using System;23 22 using System.Windows.Forms; 24 using HeuristicLab.Common;25 23 using HeuristicLab.Core; 26 24 using HeuristicLab.MainForm; 27 using HeuristicLab.PluginInfrastructure;28 25 29 26 namespace HeuristicLab.Problems.DataAnalysis.Views { … … 54 51 } 55 52 #endregion 56 57 protected override bool CheckCompatibilityOfProblemData(IDataAnalysisProblemData problemData) {58 IClassificationProblemData classificationProblemData = problemData as IClassificationProblemData;59 if (classificationProblemData == null) {60 ErrorHandling.ShowErrorDialog(this, new ArgumentException("The problem data is no classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided."));61 return false;62 }63 64 if (!classificationProblemData.TargetVariable.Equals(Content.ProblemData.TargetVariable)) {65 string message = "The target variables are not matching. Old target variable: '"66 + Content.ProblemData.TargetVariable67 + "'. New targetvariable: '" + classificationProblemData.TargetVariable + "'";68 ErrorHandling.ShowErrorDialog(this, new InvalidOperationException(message));69 return false;70 }71 72 return base.CheckCompatibilityOfProblemData(problemData);73 }74 53 } 75 54 }
Note: See TracChangeset
for help on using the changeset viewer.