Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/11/14 11:12:58 (10 years ago)
Author:
rstoll
Message:
  • disabled manipulation if a filter is active
  • Reordered code ManipulationContent
File:
1 edited

Legend:

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

    r10905 r10970  
    4545      tabsPreview.ItemSize = new Size(0, 1);
    4646      tabsPreview.SizeMode = TabSizeMode.Fixed;
     47      lblPreviewInActive.Visible = false;
    4748
    4849      validators = new Action[] {
     
    7273        }
    7374        cmbVariableNames.SelectedIndex = 0;
     75        checkFilters();
    7476      }
    7577    }
     
    7880      base.RegisterContentEvents();
    7981      Content.ManipulationLogic.Changed += Content_Changed;
     82      Content.FilterLogic.FilterChanged += FilterLogic_FilterChanged;
    8083    }
    8184
     
    8386      base.DeregisterContentEvents();
    8487      Content.ManipulationLogic.Changed -= Content_Changed;
     88      Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged;
     89    }
     90
     91    private void FilterLogic_FilterChanged(object sender, EventArgs e) {
     92      if (Content != null) {
     93        checkFilters();
     94      }
     95    }
     96
     97    private void checkFilters() {
     98      if (Content.FilterLogic.IsFiltered) {
     99        tabsPreview.SelectedIndex = 0;
     100        lstMethods.Enabled = false;
     101        tabsData.Enabled = false;
     102        tabsPreview.Enabled = false;
     103        lblPreviewInActive.Visible = true;
     104        btnApply.Enabled = false;
     105      } else {
     106        lblPreviewInActive.Visible = false;
     107        tabsData.Enabled = true;
     108        tabsPreview.Enabled = true;
     109        lstMethods.Enabled = true;
     110        lstMethods_SelectedIndexChanged(null, null);
     111      }
    85112    }
    86113
Note: See TracChangeset for help on using the changeset viewer.