Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/07/16 13:50:21 (7 years ago)
Author:
pfleck
Message:

#2709

  • Removed the PreprocessingDataTable and PreprocessingDataTableView and use dhe HL DatatTableControl instead.
  • Moved and refactored some code of PreprocessingChart and moved unnecessary code from base classes to actual derivative classes.
File:
1 edited

Legend:

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

    r14446 r14459  
    253253      if (!bodyCache.ContainsKey(key)) {
    254254        if (rowVariable == colVariable) { // use historgram if x and y variable are equal
    255           PreprocessingDataTable dataTable = new PreprocessingDataTable();
     255          var dataTable = new DataTable();
    256256          DataRow dataRow = Content.CreateDataRow(rowVariable, DataRowVisualProperties.DataRowChartType.Histogram);
     257          dataRow.VisualProperties.IsVisibleInLegend = false;
    257258          dataTable.Rows.Add(dataRow);
    258           PreprocessingDataTableView pcv = new PreprocessingDataTableView {
     259          var pcv = new DataTableControl {
    259260            Name = key.ToString(),
    260261            Content = dataTable,
    261262            Dock = DockStyle.Fill,
    262             ShowLegend = false,
    263             XAxisFormat = "G3"
     263            //ShowLegend = false,
     264            //XAxisFormat = "G3"
    264265          };
    265           pcv.ChartDoubleClick += HistogramDoubleClick;
     266          //pcv.ChartDoubleClick += HistogramDoubleClick;
    266267          bodyCache.Add(key, pcv);
    267268        } else { //scatter plot
     
    361362    //open histogram in new tab with new content when double clicked
    362363    private void HistogramDoubleClick(object sender, EventArgs e) {
    363       PreprocessingDataTableView pcv = (PreprocessingDataTableView)sender;
     364      DataTableControl pcv = (DataTableControl)sender;
    364365      HistogramContent histoContent = new HistogramContent(Content.PreprocessingData);  // create new content     
    365366      histoContent.VariableItemList = Content.CreateVariableItemList();
    366       PreprocessingDataTable dataTable = pcv.Content;
     367      var dataTable = pcv.Content;
    367368
    368369      //Set variable item list from with variable from data table
Note: See TracChangeset for help on using the changeset viewer.