Changeset 10934 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
- Timestamp:
- 06/04/14 12:30:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
r10930 r10934 36 36 private bool notOwnEvent = true; 37 37 private bool isSearching = false; 38 private bool updateOnMouseUp = false; 38 39 private SearchAndReplaceDialog findAndReplaceDialog; 39 40 private IFindPreprocessingItemsIterator searchIterator; … … 70 71 dataGridView.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(dataGridView_CellPainting); 71 72 dataGridView.KeyDown += dataGridView_KeyDown; 73 dataGridView.MouseUp += dataGridView_MouseUp; 72 74 contextMenuCell.Items.Add(ShowHideColumns); 73 75 _highlightedRowIndices = new List<int>(); … … 79 81 if (Content != null) { 80 82 if (!isSearching) { 83 84 if (Control.MouseButtons == MouseButtons.Left) { 85 updateOnMouseUp = true; 86 return; 87 } 88 81 89 base.dataGridView_SelectionChanged(sender, e); 90 82 91 Content.DataGridLogic.SetSelection(GetSelectedCells()); 83 92 } 84 93 } 85 94 } 95 96 private void dataGridView_MouseUp(object sender, MouseEventArgs e) { 97 if (!updateOnMouseUp) 98 return; 99 100 updateOnMouseUp = false; 101 dataGridView_SelectionChanged(sender, e); 102 } 86 103 87 104 protected override void OnContentChanged() {
Note: See TracChangeset
for help on using the changeset viewer.