Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12127


Ignore:
Timestamp:
03/04/15 15:52:36 (8 years ago)
Author:
abeham
Message:

#2340: merged r12078, r12125 to stable

Location:
stable
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Core.Views/3.3/ItemArrayView.Designer.cs

    r12009 r12127  
    2020#endregion
    2121
     22using System.Security.AccessControl;
    2223using System.Windows.Forms;
    2324
  • stable/HeuristicLab.Core.Views/3.3/ItemArrayView.cs

    r12009 r12127  
    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      } else if (e.KeyData == (Keys.Control | Keys.C)) {
     260        if (itemsListView.SelectedItems.Count > 0) {
     261          var builder = new StringBuilder();
     262          foreach (ListViewItem selected in itemsListView.SelectedItems) {
     263            builder.AppendLine(selected.Text);
     264          }
     265          Clipboard.SetText(builder.ToString());
    258266        }
    259267      }
  • stable/HeuristicLab.Core.Views/3.3/ItemCollectionView.Designer.cs

    r12009 r12127  
    2020#endregion
    2121
     22using System.Security.AccessControl;
    2223using System.Windows.Forms;
    2324
  • stable/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs

    r12009 r12127  
    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        }
     
    242242          }
    243243        }
     244      } else if (e.KeyData == (Keys.Control | Keys.C)) {
     245        if (itemsListView.SelectedItems.Count > 0) {
     246          var builder = new StringBuilder();
     247          foreach (ListViewItem selected in itemsListView.SelectedItems) {
     248            builder.AppendLine(selected.Text);
     249          }
     250          Clipboard.SetText(builder.ToString());
     251        }
    244252      }
    245253    }
  • stable/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r12009 r12127  
    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      } else if (e.KeyData == (Keys.Control | Keys.C)) {
     265        if (itemsListView.SelectedItems.Count > 0) {
     266          var builder = new StringBuilder();
     267          foreach (ListViewItem selected in itemsListView.SelectedItems) {
     268            builder.AppendLine(selected.Text);
     269          }
     270          Clipboard.SetText(builder.ToString());
    263271        }
    264272      }
Note: See TracChangeset for help on using the changeset viewer.