Changeset 10173
- Timestamp:
- 12/02/13 14:58:17 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationEnsembleSolutionView.cs
r9456 r10173 47 47 var droppedData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 48 48 if (droppedData is IValueParameter) droppedData = ((IValueParameter)droppedData).Value; 49 else if (droppedData is IClassificationProblem) droppedData = ((IClassificationProblem)droppedData).ProblemData; 49 50 50 51 ClassificationEnsembleProblemData ensembleProblemData = droppedData as ClassificationEnsembleProblemData; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationSolutionView.cs
r9456 r10173 43 43 44 44 var dropData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 45 if (dropData is ClassificationProblemData) validDragOperation = true; 45 if (dropData is IClassificationProblemData) validDragOperation = true; 46 else if (dropData is IClassificationProblem) validDragOperation = true; 46 47 else if (dropData is IValueParameter) { 47 48 var param = (IValueParameter)dropData; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClusteringSolutionView.cs
r9456 r10173 43 43 44 44 var dropData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 45 if (dropData is ClusteringProblemData) validDragOperation = true; 45 if (dropData is IClusteringProblemData) validDragOperation = true; 46 else if (dropData is IClusteringProblem) validDragOperation = true; 46 47 else if (dropData is IValueParameter) { 47 48 var param = (IValueParameter)dropData; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r9974 r10173 197 197 var dropData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 198 198 if (dropData is DataAnalysisProblemData) validDragOperation = true; 199 else if (dropData is IDataAnalysisProblem) validDragOperation = true; 199 200 else if (dropData is IValueParameter) { 200 201 var param = (IValueParameter)dropData; 201 if (param.Value is DataAnalysisProblemData) validDragOperation = true;202 if (param.Value is IDataAnalysisProblemData) validDragOperation = true; 202 203 } 203 204 } … … 206 207 if (e.Effect != DragDropEffects.None) { 207 208 var dropData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 208 if (dropData is DataAnalysisProblemData) {209 if (dropData is IDataAnalysisProblemData) { 209 210 DataAnalysisProblemData problemData = (DataAnalysisProblemData)dropData; 210 211 Content.ProblemData = (DataAnalysisProblemData)problemData.Clone(); 212 } else if (dropData is IDataAnalysisProblem) { 213 IDataAnalysisProblemData problemData = ((IDataAnalysisProblem)dropData).ProblemData; 214 Content.ProblemData = (IDataAnalysisProblemData)problemData.Clone(); 211 215 } else if (dropData is IValueParameter) { 212 216 var param = (IValueParameter)dropData; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/RegressionEnsembleSolutionView.cs
r9456 r10173 47 47 var droppedData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 48 48 if (droppedData is IValueParameter) droppedData = ((IValueParameter)droppedData).Value; 49 if (droppedData is IRegressionProblem) droppedData = ((IRegressionProblem)droppedData).ProblemData; 49 50 50 51 RegressionEnsembleProblemData ensembleProblemData = droppedData as RegressionEnsembleProblemData; 51 RegressionProblemData problemData = droppedData asRegressionProblemData;52 IRegressionProblemData problemData = droppedData as IRegressionProblemData; 52 53 if (ensembleProblemData != null) { 53 54 Content.ProblemData = (RegressionEnsembleProblemData)ensembleProblemData.Clone(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/RegressionSolutionView.cs
r9456 r10173 43 43 44 44 var dropData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 45 if (dropData is RegressionProblemData) validDragOperation = true; 45 if (dropData is IRegressionProblemData) validDragOperation = true; 46 else if (dropData is IRegressionProblem) validDragOperation = true; 46 47 else if (dropData is IValueParameter) { 47 48 var param = (IValueParameter)dropData; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/TimeSeriesPrognosisSolutionView.cs
r9456 r10173 44 44 var dropData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 45 45 if (dropData is ITimeSeriesPrognosisProblemData) validDragOperation = true; 46 else if (dropData is ITimeSeriesPrognosisProblem) validDragOperation = true; 46 47 else if (dropData is IValueParameter) { 47 48 var param = (IValueParameter)dropData;
Note: See TracChangeset
for help on using the changeset viewer.