Changeset 6878 for branches/GeneralizedQAP/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
- Timestamp:
- 10/05/11 21:55:55 (13 years ago)
- Location:
- branches/GeneralizedQAP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP
- Property svn:ignore
-
old new 1 *.docstates 2 *.psess 1 3 *.resharper 2 4 *.suo 5 *.vsp 3 6 Google.ProtocolBuffers-0.9.1.dll 7 HeuristicLab 3.3.5.1.ReSharper.user 8 HeuristicLab 3.3.6.0.ReSharper.user 4 9 HeuristicLab.4.5.resharper.user 5 10 HeuristicLab.resharper.user … … 8 13 _ReSharper.HeuristicLab 9 14 _ReSharper.HeuristicLab 3.3 15 _ReSharper.HeuristicLab.ExtLibs 16 bin 10 17 protoc.exe 11 HeuristicLab 3.3.5.1.ReSharper.user 12 *.psess 13 *.vsp 14 *.docstates 18 HeuristicLab.ExtLibs.6.0.ReSharper.user
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Problems.DataAnalysis.Views/3.4
- Property svn:ignore
-
old new 4 4 HeuristicLabProblemsDataAnalysisViewsPlugin.cs 5 5 *.vs10x 6 Plugin.cs
-
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r6685 r6878 25 25 using System.Linq; 26 26 using System.Windows.Forms; 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Core.Views; 28 29 using HeuristicLab.MainForm; … … 139 140 protected override void itemsListView_DragEnter(object sender, DragEventArgs e) { 140 141 validDragOperation = false; 141 if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is DataAnalysisProblemData)) { 142 validDragOperation = true; 142 if (ReadOnly) return; 143 144 var dropData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 145 if (dropData is DataAnalysisProblemData) validDragOperation = true; 146 else if (dropData is IValueParameter) { 147 var param = (IValueParameter)dropData; 148 if (param.Value is DataAnalysisProblemData) validDragOperation = true; 143 149 } 144 150 } … … 146 152 protected override void itemsListView_DragDrop(object sender, DragEventArgs e) { 147 153 if (e.Effect != DragDropEffects.None) { 148 if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is DataAnalysisProblemData) { 149 DataAnalysisProblemData problemData = (DataAnalysisProblemData)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 154 var dropData = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); 155 if (dropData is DataAnalysisProblemData) { 156 DataAnalysisProblemData problemData = (DataAnalysisProblemData)dropData; 150 157 Content.ProblemData = (DataAnalysisProblemData)problemData.Clone(); 158 } else if (dropData is IValueParameter) { 159 var param = (IValueParameter)dropData; 160 DataAnalysisProblemData problemData = param.Value as DataAnalysisProblemData; 161 if (problemData != null) 162 Content.ProblemData = (DataAnalysisProblemData)problemData.Clone(); 151 163 } 152 164 }
Note: See TracChangeset
for help on using the changeset viewer.