Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/11/14 14:23:19 (10 years ago)
Author:
aesterer
Message:

Refactored scatter plot

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotSingleView.cs

    r10982 r10987  
    1818namespace HeuristicLab.DataPreprocessing.Views {
    1919
    20   [View("Single Scatter Plot View")]
     20  [View("Scatter Plot Single View")]
    2121  [Content(typeof(ScatterPlotContent), true)]
    22   public partial class SingleScatterPlotView : ItemView {
     22  public partial class ScatterPlotSingleView : ItemView {
    2323
    24     private IChartLogic logic;
    25 
    26     public SingleScatterPlotView() {
     24    public ScatterPlotSingleView() {
    2725      InitializeComponent();
    2826    }
     
    3533    public void InitData() {
    3634
    37       IEnumerable<string> variables = logic.GetVariableNames();
     35      IEnumerable<string> variables = Content.GetVariableNames();
    3836
    3937      // add variables to combo boxes
     
    6058      base.OnContentChanged();
    6159      if (Content != null) {
    62         logic = Content.ChartLogic;
    6360        InitData();
    6461      }
     
    7269      if (comboBoxXVariable.SelectedItem != null && comboBoxYVariable.SelectedItem != null) {
    7370        //get scatter plot with selected x and y variable
    74         ScatterPlot scatterPlot = logic.CreateScatterPlot((string)comboBoxXVariable.SelectedItem, (string)comboBoxYVariable.SelectedItem);
     71        ScatterPlot scatterPlot = Content.CreateScatterPlot((string)comboBoxXVariable.SelectedItem, (string)comboBoxYVariable.SelectedItem);
    7572        scatterPlotView.Content = scatterPlot;
    7673
Note: See TracChangeset for help on using the changeset viewer.