Ticket #2452: error-characteristics-chart-drag-and-drop.patch
File error-characteristics-chart-drag-and-drop.patch, 3.9 KB (added by bburlacu, 9 years ago) |
---|
-
HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs
264 264 } 265 265 } 266 266 267 private void chart_DragDrop(object sender, DragEventArgs e) { 268 if (e.Data.GetDataPresent("HeuristicLab")) { 269 var regressionSolution = (IRegressionSolution)e.Data.GetData("HeuristicLab"); 270 AddRegressionSolution(regressionSolution); 271 } 272 } 273 274 private void chart_DragEnter(object sender, DragEventArgs e) { 275 e.Effect = DragDropEffects.Copy; 276 } 277 267 278 private void residualComboBox_SelectedIndexChanged(object sender, EventArgs e) { 268 279 UpdateChart(); 269 280 } -
HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.Designer.cs
45 45 /// </summary> 46 46 private void InitializeComponent() { 47 47 this.components = new System.ComponentModel.Container(); 48 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea 2= new System.Windows.Forms.DataVisualization.Charting.ChartArea();49 System.Windows.Forms.DataVisualization.Charting.Legend legend 2= new System.Windows.Forms.DataVisualization.Charting.Legend();48 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 49 System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 50 50 this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart(); 51 51 this.label1 = new System.Windows.Forms.Label(); 52 52 this.cmbSamples = new System.Windows.Forms.ComboBox(); … … 56 56 // 57 57 // chart 58 58 // 59 this.chart.AllowDrop = true; 59 60 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 60 61 | System.Windows.Forms.AnchorStyles.Left) 61 62 | System.Windows.Forms.AnchorStyles.Right))); 62 chartArea 2.Name = "ChartArea1";63 this.chart.ChartAreas.Add(chartArea 2);64 legend 2.Alignment = System.Drawing.StringAlignment.Center;65 legend 2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top;66 legend 2.Name = "Legend1";67 this.chart.Legends.Add(legend 2);63 chartArea1.Name = "ChartArea1"; 64 this.chart.ChartAreas.Add(chartArea1); 65 legend1.Alignment = System.Drawing.StringAlignment.Center; 66 legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top; 67 legend1.Name = "Legend1"; 68 this.chart.Legends.Add(legend1); 68 69 this.chart.Location = new System.Drawing.Point(6, 28); 69 70 this.chart.Name = "chart"; 70 71 this.chart.Size = new System.Drawing.Size(366, 202); 71 72 this.chart.TabIndex = 0; 72 73 this.chart.Text = "chart"; 74 this.chart.DragDrop += new System.Windows.Forms.DragEventHandler(this.chart_DragDrop); 75 this.chart.DragEnter += new System.Windows.Forms.DragEventHandler(this.chart_DragEnter); 73 76 this.chart.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.Chart_MouseDoubleClick); 74 77 this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove); 75 78 //