Changeset 12694 for branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
- Timestamp:
- 07/09/15 13:07:30 (9 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering
- Property svn:mergeinfo changed
-
Property
svn:global-ignores
set to
*.nuget
packages
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Collections.Generic; 25 25 using System.Linq; 26 using System.Text; 26 27 using System.Windows.Forms; 27 28 using HeuristicLab.Collections; 28 29 using HeuristicLab.Common; 29 30 using HeuristicLab.MainForm; 30 using HeuristicLab.MainForm.WindowsForms;31 31 using HeuristicLab.PluginInfrastructure; 32 32 … … 35 35 [Content(typeof(ItemCollection<>), true)] 36 36 [Content(typeof(IItemCollection<>), false)] 37 [Content(typeof(ReadOnlyItemCollection<>), true)] 37 38 public partial class ItemCollectionView<T> : ItemView where T : class, IItem { 38 39 protected Dictionary<T, List<ListViewItem>> itemListViewItemMapping; … … 140 141 try { 141 142 return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 142 } 143 catch (Exception ex) { 143 } catch (Exception ex) { 144 144 ErrorHandling.ShowErrorDialog(this, ex); 145 145 } … … 242 242 } 243 243 } 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 } 244 252 } 245 253 }
Note: See TracChangeset
for help on using the changeset viewer.