Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/15 11:18:07 (10 years ago)
Author:
bburlacu
Message:

#2276: Merged trunk changes.

Location:
branches/HeuristicLab.DatasetRefactor/sources
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DatasetRefactor/sources

  • branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.Designer.cs

    r12031 r12105  
    2020#endregion
    2121
     22using System.Security.AccessControl;
    2223using System.Windows.Forms;
    2324
     
    153154      this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick);
    154155      this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown);
     156      this.itemsListView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyUp);
    155157      //
    156158      // imageList
  • branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs

    r12031 r12105  
    2424using System.Drawing;
    2525using System.Linq;
     26using System.Text;
    2627using System.Windows.Forms;
    2728using HeuristicLab.Collections;
     
    141142        try {
    142143          return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
    143         }
    144         catch (Exception ex) {
     144        } catch (Exception ex) {
    145145          ErrorHandling.ShowErrorDialog(this, ex);
    146146        }
     
    256256          foreach (ListViewItem item in itemsListView.SelectedItems)
    257257            Content[item.Index] = null;
     258        }
     259      }
     260    }
     261
     262    protected virtual void itemsListView_KeyUp(object sender, KeyEventArgs e) {
     263      if (e.KeyData == (Keys.Control | Keys.C)) {
     264        if (itemsListView.SelectedItems.Count > 0) {
     265          var builder = new StringBuilder();
     266          foreach (ListViewItem selected in itemsListView.SelectedItems) {
     267            builder.AppendLine(selected.Text);
     268          }
     269          Clipboard.SetText(builder.ToString());
    258270        }
    259271      }
  • branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.Designer.cs

    r12031 r12105  
    2020#endregion
    2121
     22using System.Security.AccessControl;
    2223using System.Windows.Forms;
    2324
     
    106107      this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick);
    107108      this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown);
     109      this.itemsListView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyUp);
    108110      //
    109111      // imageList
  • branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs

    r12031 r12105  
    2424using System.Collections.Generic;
    2525using System.Linq;
     26using System.Text;
    2627using System.Windows.Forms;
    2728using HeuristicLab.Collections;
     
    140141        try {
    141142          return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
    142         }
    143         catch (Exception ex) {
     143        } catch (Exception ex) {
    144144          ErrorHandling.ShowErrorDialog(this, ex);
    145145        }
     
    244244      }
    245245    }
     246    protected virtual void itemsListView_KeyUp(object sender, KeyEventArgs e) {
     247      if (e.KeyData == (Keys.Control | Keys.C)) {
     248        if (itemsListView.SelectedItems.Count > 0) {
     249          var builder = new StringBuilder();
     250          foreach (ListViewItem selected in itemsListView.SelectedItems) {
     251            builder.AppendLine(selected.Text);
     252          }
     253          Clipboard.SetText(builder.ToString());
     254        }
     255      }
     256    }
    246257    protected virtual void itemsListView_DoubleClick(object sender, EventArgs e) {
    247258      if (itemsListView.SelectedItems.Count == 1) {
  • branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Core.Views/3.3/ItemListView.Designer.cs

    r12031 r12105  
    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);
    157158      //
    158159      // imageList
  • branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r12031 r12105  
    2525using System.Drawing;
    2626using System.Linq;
     27using System.Text;
    2728using System.Windows.Forms;
    2829using HeuristicLab.Collections;
     
    146147        try {
    147148          return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
    148         }
    149         catch (Exception ex) {
     149        } catch (Exception ex) {
    150150          ErrorHandling.ShowErrorDialog(this, ex);
    151151        }
     
    261261          foreach (ListViewItem item in itemsListView.SelectedItems)
    262262            Content.RemoveAt(item.Index);
     263        }
     264      }
     265    }
     266
     267    protected virtual void itemsListView_KeyUp(object sender, KeyEventArgs e) {
     268      if (e.KeyData == (Keys.Control | Keys.C)) {
     269        if (itemsListView.SelectedItems.Count > 0) {
     270          var builder = new StringBuilder();
     271          foreach (ListViewItem selected in itemsListView.SelectedItems) {
     272            builder.AppendLine(selected.Text);
     273          }
     274          Clipboard.SetText(builder.ToString());
    263275        }
    264276      }
Note: See TracChangeset for help on using the changeset viewer.