Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/14 15:22:41 (10 years ago)
Author:
rstoll
Message:
  • Interpolation implemented
  • Smoothing fixed
  • Interpolation/Smooting menu disabled if first column is selected as well
File:
1 edited

Legend:

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

    r10817 r10820  
    303303
    304304          smoothingToolStripMenuItem_Column.Enabled =
    305             interpolationToolStripMenuItem_Column.Enabled = !(e.RowIndex == 0 || e.RowIndex == Content.Rows)
     305            interpolationToolStripMenuItem_Column.Enabled = !dataGridView.SelectedCells.Contains(dataGridView[e.ColumnIndex, 0])
     306            && !dataGridView.SelectedCells.Contains(dataGridView[e.ColumnIndex, Content.Rows - 1])
    306307            && !Content.DataGridLogic.AreAllStringColumns(columnIndices);
    307308
     
    423424      Content.ManipulationLogic.ReplaceIndicesByLinearInterpolationOfNeighbours(GetSelectedCells());
    424425    }
    425     private void ReplaceWithInterpolation_Selection_Click(object sender, EventArgs e) {
    426       Content.ManipulationLogic.ReplaceIndicesByLinearInterpolationOfNeighbours(GetSelectedCells());
    427     }
    428426
    429427    private void ReplaceWithSmoothing_Selection_Click(object sender, EventArgs e) {
     428      Content.ManipulationLogic.ReplaceIndicesBySmoothing(GetSelectedCells());
    430429    }
    431430
Note: See TracChangeset for help on using the changeset viewer.