Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/12 10:16:31 (12 years ago)
Author:
mkommend
Message:

#1811: Removed unnecessary code in ErrorCharacteristicsCurveViews.

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  
    2626      ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
    2727      this.SuspendLayout();
    28       //
    29       // chart
    30       //
    31       this.chart.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart_MouseDown);
    32       //
     28      //
    3329      // SymbolicRegressionSolutionErrorCharacteristicsCurveView
    3430      //
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionErrorCharacteristicsCurveView.cs

    r7259 r8100  
    2323using System.Linq;
    2424using System.Windows.Forms;
    25 using System.Windows.Forms.DataVisualization.Charting;
    2625using HeuristicLab.Algorithms.DataAnalysis;
    2726using HeuristicLab.MainForm;
     
    7372      foreach (var variable in usedVariables) {
    7473        problemData.InputVariables.SetItemCheckedState(
    75           problemData.InputVariables.Where(x => x.Value == variable).First(), true);
     74          problemData.InputVariables.First(x => x.Value == variable), true);
    7675      }
    7776
     
    9089      base.Content_ProblemDataChanged(sender, e);
    9190    }
    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     }
    10191  }
    10292}
Note: See TracChangeset for help on using the changeset viewer.