- Timestamp:
- 08/11/11 17:54:42 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views
- Files:
-
- 4 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 }
Note: See TracChangeset
for help on using the changeset viewer.