Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17126 for trunk


Ignore:
Timestamp:
07/11/19 12:10:08 (5 years ago)
Author:
abeham
Message:

#3010: improved double click handling in checked collection views

Location:
trunk/HeuristicLab.Core.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Core.Views/3.3/CheckedItemCollectionView.cs

    r17009 r17126  
    8484      if (doubleClick) {
    8585        e.NewValue = e.CurrentValue;
    86         doubleClick = false;
    8786      } else {
    8887        bool check = e.NewValue == CheckState.Checked;
     
    104103    }
    105104    protected void itemsListView_MouseDown(object sender, MouseEventArgs e) {
    106       if (e.Clicks > 1)
    107         doubleClick = true;
     105      doubleClick = e.Clicks > 1;
    108106    }
    109107    #endregion
  • trunk/HeuristicLab.Core.Views/3.3/CheckedItemListView.cs

    r17009 r17126  
    8686      if (doubleClick) {
    8787        e.NewValue = e.CurrentValue;
    88         doubleClick = false;
    8988      } else {
    9089        bool check = e.NewValue == CheckState.Checked;
     
    107106
    108107    protected void itemsListView_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) {
    109       if (e.Clicks > 1)
    110         doubleClick = true;
     108      doubleClick = e.Clicks > 1;
    111109    }
    112110
Note: See TracChangeset for help on using the changeset viewer.