Changeset 10769


Ignore:
Timestamp:
04/23/14 11:31:52 (8 years ago)
Author:
sbreuer
Message:
  • create toolstripmenuitems
File:
1 edited

Legend:

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

    r10764 r10769  
    280280      if (e.Button == System.Windows.Forms.MouseButtons.Right) {
    281281        if (e.ColumnIndex == -1 || e.RowIndex == -1) {
    282           replaceValueToolStripMenuItem.Visible = false;
     282          replaceValueOverColumnToolStripMenuItem.Visible = false;
    283283          contextMenuCell.Show(MousePosition);
    284284        } else {
     
    287287            dataGridView[e.ColumnIndex, e.RowIndex].Selected = true;
    288288          }
    289           interpolationToolStripMenuItem.Enabled = !(e.RowIndex == 0 || e.RowIndex == Content.Rows);
     289          interpolationToolStripMenuItem_Column.Enabled = !(e.RowIndex == 0 || e.RowIndex == Content.Rows);
    290290          var columnIndices = new HashSet<int>();
    291291          for (int i = 0; i < dataGridView.SelectedCells.Count; i++) {
    292292            columnIndices.Add(dataGridView.SelectedCells[i].ColumnIndex);
    293293          }
    294           averageToolStripMenuItem.Enabled = medianToolStripMenuItem.Enabled = randomToolStripMenuItem.Enabled = !Content.DataGridLogic.AreAllStringColumns(columnIndices);
    295           interpolationToolStripMenuItem.Enabled = interpolationToolStripMenuItem.Enabled && !Content.DataGridLogic.AreAllStringColumns(columnIndices);
    296           replaceValueToolStripMenuItem.Visible = true;
     294          averageToolStripMenuItem_Column.Enabled = medianToolStripMenuItem_Column.Enabled = randomToolStripMenuItem_Column.Enabled = !Content.DataGridLogic.AreAllStringColumns(columnIndices);
     295          interpolationToolStripMenuItem_Column.Enabled = interpolationToolStripMenuItem_Column.Enabled && !Content.DataGridLogic.AreAllStringColumns(columnIndices);
     296          replaceValueOverColumnToolStripMenuItem.Visible = true;
    297297          contextMenuCell.Show(MousePosition);
    298298        }
     
    380380    }
    381381
    382     private void ReplaceWithAverage_Click(object sender, EventArgs e) {
     382    private void ReplaceWithAverage_Column_Click(object sender, EventArgs e) {
    383383      Content.PreprocessingDataManipulation.ReplaceIndicesByAverageValue(GetSelectedCells());
    384384    }
    385385
    386     private void ReplaceWithMedian_Click(object sender, EventArgs e) {
     386    private void ReplaceWithMedian_Column_Click(object sender, EventArgs e) {
    387387      Content.PreprocessingDataManipulation.ReplaceIndicesByMedianValue(GetSelectedCells());
    388388    }
    389389
    390     private void ReplaceWithRandom_Click(object sender, EventArgs e) {
     390    private void ReplaceWithRandom_Column_Click(object sender, EventArgs e) {
    391391      Content.PreprocessingDataManipulation.ReplaceIndicesByRandomValue(GetSelectedCells());
    392392    }
    393393
    394     private void ReplaceWithMostCommon_Click(object sender, EventArgs e) {
     394    private void ReplaceWithMostCommon_Column_Click(object sender, EventArgs e) {
    395395      Content.PreprocessingDataManipulation.ReplaceIndicesByMostCommonValue(GetSelectedCells());
    396396    }
    397397
    398     private void ReplaceWithInterpolation_Click(object sender, EventArgs e) {
     398    private void ReplaceWithInterpolation_Column_Click(object sender, EventArgs e) {
    399399      Content.PreprocessingDataManipulation.ReplaceIndicesByLinearInterpolationOfNeighbours(GetSelectedCells());
    400400    }
    401401
     402    private void ReplaceWithAverage_Selection_Click(object sender, EventArgs e) {
     403    }
     404
     405    private void ReplaceWithMedian_Selection_Click(object sender, EventArgs e) {
     406    }
     407
     408    private void ReplaceWithRandom_Selection_Click(object sender, EventArgs e) {
     409    }
     410
     411    private void ReplaceWithMostCommon_Selection_Click(object sender, EventArgs e) {
     412    }
     413
     414    private void ReplaceWithInterpolation_Selection_Click(object sender, EventArgs e) {
     415    }
     416
     417    private void ReplaceWithSmoothing_Selection_Click(object sender, EventArgs e) {
     418    }
    402419
    403420    private void btnSearch_Click(object sender, EventArgs e) {
Note: See TracChangeset for help on using the changeset viewer.