Changeset 10769
- Timestamp:
- 04/23/14 11:31:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/DataGridContentView.cs
r10764 r10769 280 280 if (e.Button == System.Windows.Forms.MouseButtons.Right) { 281 281 if (e.ColumnIndex == -1 || e.RowIndex == -1) { 282 replaceValue ToolStripMenuItem.Visible = false;282 replaceValueOverColumnToolStripMenuItem.Visible = false; 283 283 contextMenuCell.Show(MousePosition); 284 284 } else { … … 287 287 dataGridView[e.ColumnIndex, e.RowIndex].Selected = true; 288 288 } 289 interpolationToolStripMenuItem .Enabled = !(e.RowIndex == 0 || e.RowIndex == Content.Rows);289 interpolationToolStripMenuItem_Column.Enabled = !(e.RowIndex == 0 || e.RowIndex == Content.Rows); 290 290 var columnIndices = new HashSet<int>(); 291 291 for (int i = 0; i < dataGridView.SelectedCells.Count; i++) { 292 292 columnIndices.Add(dataGridView.SelectedCells[i].ColumnIndex); 293 293 } 294 averageToolStripMenuItem .Enabled = medianToolStripMenuItem.Enabled = randomToolStripMenuItem.Enabled = !Content.DataGridLogic.AreAllStringColumns(columnIndices);295 interpolationToolStripMenuItem .Enabled = interpolationToolStripMenuItem.Enabled && !Content.DataGridLogic.AreAllStringColumns(columnIndices);296 replaceValue ToolStripMenuItem.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; 297 297 contextMenuCell.Show(MousePosition); 298 298 } … … 380 380 } 381 381 382 private void ReplaceWithAverage_C lick(object sender, EventArgs e) {382 private void ReplaceWithAverage_Column_Click(object sender, EventArgs e) { 383 383 Content.PreprocessingDataManipulation.ReplaceIndicesByAverageValue(GetSelectedCells()); 384 384 } 385 385 386 private void ReplaceWithMedian_C lick(object sender, EventArgs e) {386 private void ReplaceWithMedian_Column_Click(object sender, EventArgs e) { 387 387 Content.PreprocessingDataManipulation.ReplaceIndicesByMedianValue(GetSelectedCells()); 388 388 } 389 389 390 private void ReplaceWithRandom_C lick(object sender, EventArgs e) {390 private void ReplaceWithRandom_Column_Click(object sender, EventArgs e) { 391 391 Content.PreprocessingDataManipulation.ReplaceIndicesByRandomValue(GetSelectedCells()); 392 392 } 393 393 394 private void ReplaceWithMostCommon_C lick(object sender, EventArgs e) {394 private void ReplaceWithMostCommon_Column_Click(object sender, EventArgs e) { 395 395 Content.PreprocessingDataManipulation.ReplaceIndicesByMostCommonValue(GetSelectedCells()); 396 396 } 397 397 398 private void ReplaceWithInterpolation_C lick(object sender, EventArgs e) {398 private void ReplaceWithInterpolation_Column_Click(object sender, EventArgs e) { 399 399 Content.PreprocessingDataManipulation.ReplaceIndicesByLinearInterpolationOfNeighbours(GetSelectedCells()); 400 400 } 401 401 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 } 402 419 403 420 private void btnSearch_Click(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.