Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12125


Ignore:
Timestamp:
03/04/15 14:50:42 (10 years ago)
Author:
abeham
Message:

#2340: moved code to KeyDown event handler

Location:
trunk/sources/HeuristicLab.Core.Views/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.Designer.cs

    r12078 r12125  
    154154      this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick);
    155155      this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown);
    156       this.itemsListView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyUp);
    157156      //
    158157      // imageList
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs

    r12078 r12125  
    257257            Content[item.Index] = null;
    258258        }
    259       }
    260     }
    261 
    262     protected virtual void itemsListView_KeyUp(object sender, KeyEventArgs e) {
    263       if (e.KeyData == (Keys.Control | Keys.C)) {
     259      } else if (e.KeyData == (Keys.Control | Keys.C)) {
    264260        if (itemsListView.SelectedItems.Count > 0) {
    265261          var builder = new StringBuilder();
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.Designer.cs

    r12078 r12125  
    107107      this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick);
    108108      this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown);
    109       this.itemsListView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyUp);
    110109      //
    111110      // imageList
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs

    r12078 r12125  
    242242          }
    243243        }
    244       }
    245     }
    246     protected virtual void itemsListView_KeyUp(object sender, KeyEventArgs e) {
    247       if (e.KeyData == (Keys.Control | Keys.C)) {
     244      } else if (e.KeyData == (Keys.Control | Keys.C)) {
    248245        if (itemsListView.SelectedItems.Count > 0) {
    249246          var builder = new StringBuilder();
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.Designer.cs

    r12078 r12125  
    155155      this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick);
    156156      this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown);
    157       this.itemsListView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyUp);
    158157      //
    159158      // imageList
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r12078 r12125  
    262262            Content.RemoveAt(item.Index);
    263263        }
    264       }
    265     }
    266 
    267     protected virtual void itemsListView_KeyUp(object sender, KeyEventArgs e) {
    268       if (e.KeyData == (Keys.Control | Keys.C)) {
     264      } else if (e.KeyData == (Keys.Control | Keys.C)) {
    269265        if (itemsListView.SelectedItems.Count > 0) {
    270266          var builder = new StringBuilder();
Note: See TracChangeset for help on using the changeset viewer.