Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/17 11:24:43 (7 years ago)
Author:
pfleck
Message:

#2809: Removed TransactionalPreprocessingData and moved relevant code to PreprocessingData.

File:
1 edited

Legend:

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

    r15110 r15270  
    167167
    168168      ReplaceTransaction(() => {
    169         Content.PreProcessingData.InTransaction(() => {
     169        Content.PreprocessingData.InTransaction(() => {
    170170          for (int row = containsHeader ? 1 : 0; row < values.GetLength(1); row++) {
    171171            for (int col = 0; col < values.GetLength(0); col++) {
     
    177177              if (string.IsNullOrWhiteSpace(firstRow[i]))
    178178                firstRow[i] = string.Format("<{0}>", i);
    179             Content.PreProcessingData.RenameColumns(firstRow);
     179            Content.PreprocessingData.RenameColumns(firstRow);
    180180          }
    181181        });
     
    224224      if (e.Button == MouseButtons.Middle) {
    225225        int newIndex = e.ColumnIndex >= 0 ? e.ColumnIndex : 0;
    226         Content.PreProcessingData.InsertColumn<double>(newIndex.ToString(), newIndex);
     226        Content.PreprocessingData.InsertColumn<double>(newIndex.ToString(), newIndex);
    227227      } else if (e.Button == MouseButtons.Right && Content.SortableView) {
    228228        SortColumn(e.ColumnIndex);
     
    235235        if (e.Button == MouseButtons.Middle) {
    236236          int newIndex = e.RowIndex >= 0 ? e.RowIndex : 0;
    237           Content.PreProcessingData.InsertRow(newIndex);
     237          Content.PreprocessingData.InsertRow(newIndex);
    238238        }
    239239      }
     
    531531            medianToolStripMenuItem_Selection.Enabled =
    532532            randomToolStripMenuItem_Column.Enabled =
    533             randomToolStripMenuItem_Selection.Enabled = !Content.PreProcessingData.AreAllStringColumns(columnIndices);
     533            randomToolStripMenuItem_Selection.Enabled = !Content.PreprocessingData.AreAllStringColumns(columnIndices);
    534534
    535535          smoothingToolStripMenuItem_Column.Enabled =
    536536            interpolationToolStripMenuItem_Column.Enabled = !dataGridView.SelectedCells.Contains(dataGridView[e.ColumnIndex, 0])
    537537            && !dataGridView.SelectedCells.Contains(dataGridView[e.ColumnIndex, Content.Rows - 1])
    538             && !Content.PreProcessingData.AreAllStringColumns(columnIndices);
     538            && !Content.PreprocessingData.AreAllStringColumns(columnIndices);
    539539
    540540          replaceValueOverColumnToolStripMenuItem.Visible = true;
     
    675675
    676676    private void addRowButton_Click(object sender, EventArgs e) {
    677       Content.PreProcessingData.InsertRow(Content.Rows);
     677      Content.PreprocessingData.InsertRow(Content.Rows);
    678678    }
    679679
    680680    private void addColumnButton_Click(object sender, EventArgs e) {
    681       Content.PreProcessingData.InsertColumn<double>(Content.Columns.ToString(), Content.Columns);
     681      Content.PreprocessingData.InsertColumn<double>(Content.Columns.ToString(), Content.Columns);
    682682    }
    683683
     
    686686
    687687      if (renameDialog.ShowDialog(this) == DialogResult.OK) {
    688         Content.PreProcessingData.RenameColumns(renameDialog.ColumnNames);
     688        Content.PreprocessingData.RenameColumns(renameDialog.ColumnNames);
    689689      }
    690690    }
     
    693693      foreach (DataGridViewColumn column in DataGridView.Columns) {
    694694        var variable = column.HeaderText;
    695         bool isInputTarget = Content.PreProcessingData.InputVariables.Contains(variable)
    696           || Content.PreProcessingData.TargetVariable == variable;
     695        bool isInputTarget = Content.PreprocessingData.InputVariables.Contains(variable)
     696          || Content.PreprocessingData.TargetVariable == variable;
    697697        column.Visible = isInputTarget;
    698698      }
Note: See TracChangeset for help on using the changeset viewer.