Changeset 10970 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.cs
- Timestamp:
- 06/11/14 11:12:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.cs
r10905 r10970 45 45 tabsPreview.ItemSize = new Size(0, 1); 46 46 tabsPreview.SizeMode = TabSizeMode.Fixed; 47 lblPreviewInActive.Visible = false; 47 48 48 49 validators = new Action[] { … … 72 73 } 73 74 cmbVariableNames.SelectedIndex = 0; 75 checkFilters(); 74 76 } 75 77 } … … 78 80 base.RegisterContentEvents(); 79 81 Content.ManipulationLogic.Changed += Content_Changed; 82 Content.FilterLogic.FilterChanged += FilterLogic_FilterChanged; 80 83 } 81 84 … … 83 86 base.DeregisterContentEvents(); 84 87 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 } 85 112 } 86 113
Note: See TracChangeset
for help on using the changeset viewer.