- Timestamp:
- 07/19/17 11:24:43 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Cleanup/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
r15110 r15270 167 167 168 168 ReplaceTransaction(() => { 169 Content.Pre ProcessingData.InTransaction(() => {169 Content.PreprocessingData.InTransaction(() => { 170 170 for (int row = containsHeader ? 1 : 0; row < values.GetLength(1); row++) { 171 171 for (int col = 0; col < values.GetLength(0); col++) { … … 177 177 if (string.IsNullOrWhiteSpace(firstRow[i])) 178 178 firstRow[i] = string.Format("<{0}>", i); 179 Content.Pre ProcessingData.RenameColumns(firstRow);179 Content.PreprocessingData.RenameColumns(firstRow); 180 180 } 181 181 }); … … 224 224 if (e.Button == MouseButtons.Middle) { 225 225 int newIndex = e.ColumnIndex >= 0 ? e.ColumnIndex : 0; 226 Content.Pre ProcessingData.InsertColumn<double>(newIndex.ToString(), newIndex);226 Content.PreprocessingData.InsertColumn<double>(newIndex.ToString(), newIndex); 227 227 } else if (e.Button == MouseButtons.Right && Content.SortableView) { 228 228 SortColumn(e.ColumnIndex); … … 235 235 if (e.Button == MouseButtons.Middle) { 236 236 int newIndex = e.RowIndex >= 0 ? e.RowIndex : 0; 237 Content.Pre ProcessingData.InsertRow(newIndex);237 Content.PreprocessingData.InsertRow(newIndex); 238 238 } 239 239 } … … 531 531 medianToolStripMenuItem_Selection.Enabled = 532 532 randomToolStripMenuItem_Column.Enabled = 533 randomToolStripMenuItem_Selection.Enabled = !Content.Pre ProcessingData.AreAllStringColumns(columnIndices);533 randomToolStripMenuItem_Selection.Enabled = !Content.PreprocessingData.AreAllStringColumns(columnIndices); 534 534 535 535 smoothingToolStripMenuItem_Column.Enabled = 536 536 interpolationToolStripMenuItem_Column.Enabled = !dataGridView.SelectedCells.Contains(dataGridView[e.ColumnIndex, 0]) 537 537 && !dataGridView.SelectedCells.Contains(dataGridView[e.ColumnIndex, Content.Rows - 1]) 538 && !Content.Pre ProcessingData.AreAllStringColumns(columnIndices);538 && !Content.PreprocessingData.AreAllStringColumns(columnIndices); 539 539 540 540 replaceValueOverColumnToolStripMenuItem.Visible = true; … … 675 675 676 676 private void addRowButton_Click(object sender, EventArgs e) { 677 Content.Pre ProcessingData.InsertRow(Content.Rows);677 Content.PreprocessingData.InsertRow(Content.Rows); 678 678 } 679 679 680 680 private void addColumnButton_Click(object sender, EventArgs e) { 681 Content.Pre ProcessingData.InsertColumn<double>(Content.Columns.ToString(), Content.Columns);681 Content.PreprocessingData.InsertColumn<double>(Content.Columns.ToString(), Content.Columns); 682 682 } 683 683 … … 686 686 687 687 if (renameDialog.ShowDialog(this) == DialogResult.OK) { 688 Content.Pre ProcessingData.RenameColumns(renameDialog.ColumnNames);688 Content.PreprocessingData.RenameColumns(renameDialog.ColumnNames); 689 689 } 690 690 } … … 693 693 foreach (DataGridViewColumn column in DataGridView.Columns) { 694 694 var variable = column.HeaderText; 695 bool isInputTarget = Content.Pre ProcessingData.InputVariables.Contains(variable)696 || Content.Pre ProcessingData.TargetVariable == variable;695 bool isInputTarget = Content.PreprocessingData.InputVariables.Contains(variable) 696 || Content.PreprocessingData.TargetVariable == variable; 697 697 column.Visible = isInputTarget; 698 698 }
Note: See TracChangeset
for help on using the changeset viewer.