Ignore:
Timestamp:
06/11/14 15:43:05 (8 years ago)
Author:
mleitner
Message:

Refactoring

File:
1 edited

Legend:

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

    r11000 r11002  
    140140    protected override void dataGridView_SelectionChanged(object sender, EventArgs e) {
    141141      base.dataGridView_SelectionChanged(sender, e);
    142       Content.DataGridLogic.SetSelection(GetSelectedCells());
     142      Content.Selection = GetSelectedCells();
    143143    }
    144144
     
    150150            errorMessage = "A filter is active, you cannot modify data. Press ESC to exit edit mode.";
    151151          } else {
    152             Content.DataGridLogic.Validate(e.FormattedValue.ToString(), out errorMessage, e.ColumnIndex);
     152            Content.Validate(e.FormattedValue.ToString(), out errorMessage, e.ColumnIndex);
    153153          }
    154154
     
    329329      ResumeRepaint(true);
    330330      isSearching = false;
    331       Content.DataGridLogic.SetSelection(selectedCells);
     331      Content.Selection = selectedCells;
    332332      //update statistic in base
    333333      base.dataGridView_SelectionChanged(sender, e);
     
    489489            medianToolStripMenuItem_Selection.Enabled =
    490490            randomToolStripMenuItem_Column.Enabled =
    491             randomToolStripMenuItem_Selection.Enabled = !Content.DataGridLogic.AreAllStringColumns(columnIndices);
     491            randomToolStripMenuItem_Selection.Enabled = !Content.PreProcessingData.AreAllStringColumns(columnIndices);
    492492
    493493          smoothingToolStripMenuItem_Column.Enabled =
    494494            interpolationToolStripMenuItem_Column.Enabled = !dataGridView.SelectedCells.Contains(dataGridView[e.ColumnIndex, 0])
    495495            && !dataGridView.SelectedCells.Contains(dataGridView[e.ColumnIndex, Content.Rows - 1])
    496             && !Content.DataGridLogic.AreAllStringColumns(columnIndices);
     496            && !Content.PreProcessingData.AreAllStringColumns(columnIndices);
    497497
    498498          replaceValueOverColumnToolStripMenuItem.Visible = true;
     
    544544        }
    545545        triggersOwnEvent(() => {
    546           Content.DataGridLogic.DeleteRow(rows);
     546          Content.DeleteRow(rows);
    547547          OnContentChanged();
    548548        });
Note: See TracChangeset for help on using the changeset viewer.