- Timestamp:
- 08/11/11 17:54:42 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationSolutionView.cs
r6652 r6653 35 35 set { base.Content = value; } 36 36 } 37 38 #region drag and drop 39 protected override void itemsListView_DragEnter(object sender, DragEventArgs e) { 40 validDragOperation = false; 41 if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is ClassificationProblemData)) { 42 validDragOperation = true; 43 } 44 } 45 #endregion 37 46 } 38 47 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClusteringSolutionView.cs
r6652 r6653 35 35 set { base.Content = value; } 36 36 } 37 38 #region drag and drop 39 protected override void itemsListView_DragEnter(object sender, DragEventArgs e) { 40 validDragOperation = false; 41 if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is ClusteringProblemData)) { 42 validDragOperation = true; 43 } 44 } 45 #endregion 37 46 } 38 47 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r6652 r6653 37 37 InitializeComponent(); 38 38 viewHost.ViewsLabelVisible = false; 39 base.ReadOnly = true;40 39 } 41 40 … … 118 117 itemsListView.Items.Remove(item); 119 118 } 119 120 #region drag and drop 121 protected override void itemsListView_DragEnter(object sender, DragEventArgs e) { 122 validDragOperation = false; 123 if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is DataAnalysisProblemData)) { 124 validDragOperation = true; 125 } 126 } 127 128 protected override void itemsListView_DragDrop(object sender, DragEventArgs e) { 129 if (e.Effect != DragDropEffects.None) { 130 if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is DataAnalysisProblemData) { 131 DataAnalysisProblemData problemData = (DataAnalysisProblemData)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 132 Content.ProblemData = (DataAnalysisProblemData)problemData.Clone(); 133 } 134 } 135 } 136 #endregion 120 137 } 121 138 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/RegressionSolutionView.cs
r6652 r6653 35 35 set { base.Content = value; } 36 36 } 37 38 #region drag and drop 39 protected override void itemsListView_DragEnter(object sender, DragEventArgs e) { 40 validDragOperation = false; 41 if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is RegressionProblemData)) { 42 validDragOperation = true; 43 } 44 } 45 #endregion 37 46 } 38 47 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolutionBase.cs
r6589 r6653 40 40 public new IClassificationProblemData ProblemData { 41 41 get { return (IClassificationProblemData)base.ProblemData; } 42 protectedset { base.ProblemData = value; }42 set { base.ProblemData = value; } 43 43 } 44 44 -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisSolution.cs
r6606 r6653 56 56 public IDataAnalysisProblemData ProblemData { 57 57 get { return (IDataAnalysisProblemData)this[ProblemDataResultName].Value; } 58 protectedset {58 set { 59 59 if (this[ProblemDataResultName].Value != value) { 60 60 if (value != null) { -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolutionBase.cs
r6643 r6653 48 48 public new IRegressionProblemData ProblemData { 49 49 get { return (IRegressionProblemData)base.ProblemData; } 50 protectedset { base.ProblemData = value; }50 set { base.ProblemData = value; } 51 51 } 52 52 -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Classification/IClassificationSolution.cs
r5809 r6653 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 namespace HeuristicLab.Problems.DataAnalysis { 25 24 public interface IClassificationSolution : IDataAnalysisSolution { 26 25 new IClassificationModel Model { get; } 27 new IClassificationProblemData ProblemData { get; }26 new IClassificationProblemData ProblemData { get; set; } 28 27 29 28 IEnumerable<double> EstimatedClassValues { get; } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Clustering/IClusteringSolution.cs
r5809 r6653 24 24 public interface IClusteringSolution : IDataAnalysisSolution { 25 25 new IClusteringModel Model { get; } 26 new IClusteringProblemData ProblemData { get; }26 new IClusteringProblemData ProblemData { get; set; } 27 27 28 28 IEnumerable<int> ClusterValues { get; } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisSolution.cs
r5909 r6653 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 using HeuristicLab.Common;25 25 26 26 namespace HeuristicLab.Problems.DataAnalysis { 27 27 public interface IDataAnalysisSolution : INamedItem, IStorableContent { 28 28 IDataAnalysisModel Model { get; } 29 IDataAnalysisProblemData ProblemData { get; }29 IDataAnalysisProblemData ProblemData { get; set; } 30 30 31 31 event EventHandler ModelChanged; -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionSolution.cs
r6643 r6653 24 24 public interface IRegressionSolution : IDataAnalysisSolution { 25 25 new IRegressionModel Model { get; } 26 new IRegressionProblemData ProblemData { get; }26 new IRegressionProblemData ProblemData { get; set; } 27 27 28 28 IEnumerable<double> EstimatedValues { get; }
Note: See TracChangeset
for help on using the changeset viewer.