Changeset 10987 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotSingleView.cs
- Timestamp:
- 06/11/14 14:23:19 (10 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotSingleView.cs
r10982 r10987 18 18 namespace HeuristicLab.DataPreprocessing.Views { 19 19 20 [View("S ingle Scatter PlotView")]20 [View("Scatter Plot Single View")] 21 21 [Content(typeof(ScatterPlotContent), true)] 22 public partial class S ingleScatterPlotView : ItemView {22 public partial class ScatterPlotSingleView : ItemView { 23 23 24 private IChartLogic logic; 25 26 public SingleScatterPlotView() { 24 public ScatterPlotSingleView() { 27 25 InitializeComponent(); 28 26 } … … 35 33 public void InitData() { 36 34 37 IEnumerable<string> variables = logic.GetVariableNames();35 IEnumerable<string> variables = Content.GetVariableNames(); 38 36 39 37 // add variables to combo boxes … … 60 58 base.OnContentChanged(); 61 59 if (Content != null) { 62 logic = Content.ChartLogic;63 60 InitData(); 64 61 } … … 72 69 if (comboBoxXVariable.SelectedItem != null && comboBoxYVariable.SelectedItem != null) { 73 70 //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); 75 72 scatterPlotView.Content = scatterPlot; 76 73
Note: See TracChangeset
for help on using the changeset viewer.