Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/22/14 15:56:14 (10 years ago)
Author:
aesterer
Message:

Added line chart and basic logic for line chart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/LineChartView.cs

    r10303 r10377  
    33using System.ComponentModel;
    44using System.Drawing;
    5 using System.Data;
    65using System.Linq;
    76using System.Text;
     
    1211using HeuristicLab.Problems.DataAnalysis;
    1312using HeuristicLab.Data.Views;
     13using HeuristicLab.Analysis;
    1414
    1515namespace HeuristicLab.DataPreprocessing.Views {
     
    1818  [Content(typeof(LineChartContent), false)]
    1919  public partial class LineChartView : ItemView {
     20
     21    private DataTable dataTable;
     22
    2023    public LineChartView() {
    2124      InitializeComponent();
     25    }
     26
     27    private void InitDataTable() {
     28      dataTable = new DataTable("LineChart");
     29      ILineChartLogic logic = Content.LineChartLogic;
     30      logic.FillDataTable(dataTable);
    2231    }
    2332
     
    2938    protected override void OnContentChanged() {
    3039      base.OnContentChanged();
     40      if (Content != null) {
     41        InitDataTable();
     42        InitVariablesListBox();
     43        viewHost.Content = dataTable;
     44
     45      }
     46    }
     47
     48    private void InitVariablesListBox() {
     49      ILineChartLogic logic = Content.LineChartLogic;
     50
     51      //foreach (var variableName in logic.GetVariableNames()) {
     52      //  variablesListBox.Items.Add(variableName,true);
     53      //}
     54    }
     55
     56    private void variablesListBox_ItemCheck(object sender, ItemCheckEventArgs e) {
     57      //string item = variablesListBox.Items[e.Index] as string;
     58
    3159    }
    3260  }
Note: See TracChangeset for help on using the changeset viewer.