Changeset 10930 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
- Timestamp:
- 06/04/14 10:51:34 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
r10916 r10930 102 102 } 103 103 104 void FilterLogic_FilterChanged(object sender, EventArgs e) {105 OnContentChanged();106 searchIterator = null;107 }108 109 104 protected override void DeregisterContentEvents() { 110 105 base.DeregisterContentEvents(); 111 106 Content.Changed -= Content_Changed; 112 107 Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged; 108 } 109 110 void FilterLogic_FilterChanged(object sender, EventArgs e) { 111 OnContentChanged(); 112 searchIterator = null; 113 if (findAndReplaceDialog != null && !findAndReplaceDialog.IsDisposed) { 114 if (Content.FilterLogic.IsFiltered) { 115 findAndReplaceDialog.DisableReplace(); 116 } else { 117 findAndReplaceDialog.EnableReplace(); 118 } 119 } 120 btnReplace.Enabled = !Content.FilterLogic.IsFiltered; 113 121 } 114 122 … … 132 140 string errorMessage; 133 141 if (Content != null) { 134 if (dataGridView.IsCurrentCellInEditMode && Content.FilterLogic.IsFiltered ()) {142 if (dataGridView.IsCurrentCellInEditMode && Content.FilterLogic.IsFiltered) { 135 143 errorMessage = "A filter is active, you cannot modify data. Press ESC to exit edit mode."; 136 144 } else { … … 191 199 searchIterator = null; 192 200 DataGridView.SelectionChanged += DataGridView_SelectionChanged_FindAndReplace; 201 if (Content.FilterLogic.IsFiltered) { 202 findAndReplaceDialog.DisableReplace(); 203 } 193 204 } 194 205 }
Note: See TracChangeset
for help on using the changeset viewer.