Ignore:
Timestamp:
07/01/14 17:42:44 (5 years ago)
Author:
mkommend
Message:

#2206: Clean up of data preprocessing code (removed unused code, used more appropriate collections, hiding of the backtransform button of symreg models).

File:
1 edited

Legend:

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

    r11045 r11070  
    7878    protected override void RegisterContentEvents() {
    7979      base.RegisterContentEvents();
    80       Content.ManipulationLogic.Changed += Content_Changed;
    8180      Content.FilterLogic.FilterChanged += FilterLogic_FilterChanged;
    8281    }
    8382
    8483    protected override void DeregisterContentEvents() {
     84      Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged;
    8585      base.DeregisterContentEvents();
    86       Content.ManipulationLogic.Changed -= Content_Changed;
    87       Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged;
    8886    }
    8987
     
    219217        var allIndices = Content.SearchLogic.GetMissingValueIndices();
    220218        int count = allIndices[columnIndex].Count;
    221         int cellCount = Content.FilterLogic.PreprocessingData.Rows*Content.FilterLogic.PreprocessingData.Columns;
     219        int cellCount = Content.FilterLogic.PreprocessingData.Rows * Content.FilterLogic.PreprocessingData.Columns;
    222220        lblPreviewReplaceMissingValues.Text = count + " cell" + (count > 1 || count == 0 ? "s" : "")
    223221          + " of " + cellCount + " (" + string.Format("{0:F2}%", 100d / cellCount * count) + ") were detected with missing values which would be replaced with " + replaceWith;
     
    292290    }
    293291
    294     void Content_Changed(object sender, DataPreprocessingChangedEventArgs e) {
    295       switch (lstMethods.SelectedIndex) {
    296         case 0:
    297           validateDeleteColumnsInfo();
    298           break;
    299         case 1:
    300           validateDeleteColumnsVariance();
    301           break;
    302         case 2:
    303           validateDeleteRowsInfo();
    304           break;
    305       }
    306     }
    307 
    308292    private void cmbReplaceWith_SelectedIndexChanged(object sender, EventArgs e) {
    309293      bool isReplaceWithValueSelected = cmbReplaceWith.SelectedIndex == 0;
Note: See TracChangeset for help on using the changeset viewer.