- Timestamp:
- 06/25/12 10:16:31 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionErrorCharacteristicsCurveView.Designer.cs
r7967 r8100 26 26 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); 27 27 this.SuspendLayout(); 28 // 29 // chart 30 // 31 this.chart.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart_MouseDown); 32 // 28 // 33 29 // SymbolicRegressionSolutionErrorCharacteristicsCurveView 34 30 // -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionErrorCharacteristicsCurveView.cs
r7259 r8100 23 23 using System.Linq; 24 24 using System.Windows.Forms; 25 using System.Windows.Forms.DataVisualization.Charting;26 25 using HeuristicLab.Algorithms.DataAnalysis; 27 26 using HeuristicLab.MainForm; … … 73 72 foreach (var variable in usedVariables) { 74 73 problemData.InputVariables.SetItemCheckedState( 75 problemData.InputVariables. Where(x => x.Value == variable).First(), true);74 problemData.InputVariables.First(x => x.Value == variable), true); 76 75 } 77 76 … … 90 89 base.Content_ProblemDataChanged(sender, e); 91 90 } 92 93 private void chart_MouseDown(object sender, MouseEventArgs e) {94 if (e.Clicks < 2) return;95 HitTestResult result = chart.HitTest(e.X, e.Y);96 if (result.ChartElementType != ChartElementType.LegendItem) return;97 if (result.Series.Name != linearRegressionSolution.Name) return;98 99 MainFormManager.MainForm.ShowContent((IRegressionSolution)result.Series.Tag);100 }101 91 } 102 92 }
Note: See TracChangeset
for help on using the changeset viewer.