Changeset 12078 for trunk/sources
- Timestamp:
- 02/25/15 22:37:45 (10 years ago)
- 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
r12012 r12078 20 20 #endregion 21 21 22 using System.Security.AccessControl; 22 23 using System.Windows.Forms; 23 24 … … 153 154 this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick); 154 155 this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown); 156 this.itemsListView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyUp); 155 157 // 156 158 // imageList -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r12012 r12078 24 24 using System.Drawing; 25 25 using System.Linq; 26 using System.Text; 26 27 using System.Windows.Forms; 27 28 using HeuristicLab.Collections; … … 141 142 try { 142 143 return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 143 } 144 catch (Exception ex) { 144 } catch (Exception ex) { 145 145 ErrorHandling.ShowErrorDialog(this, ex); 146 146 } … … 256 256 foreach (ListViewItem item in itemsListView.SelectedItems) 257 257 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()); 258 270 } 259 271 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.Designer.cs
r12012 r12078 20 20 #endregion 21 21 22 using System.Security.AccessControl; 22 23 using System.Windows.Forms; 23 24 … … 106 107 this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick); 107 108 this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown); 109 this.itemsListView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyUp); 108 110 // 109 111 // imageList -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r12012 r12078 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; … … 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 } … … 244 244 } 245 245 } 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 } 246 257 protected virtual void itemsListView_DoubleClick(object sender, EventArgs e) { 247 258 if (itemsListView.SelectedItems.Count == 1) { -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.Designer.cs
r12012 r12078 155 155 this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick); 156 156 this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown); 157 this.itemsListView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyUp); 157 158 // 158 159 // imageList -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r12012 r12078 25 25 using System.Drawing; 26 26 using System.Linq; 27 using System.Text; 27 28 using System.Windows.Forms; 28 29 using HeuristicLab.Collections; … … 146 147 try { 147 148 return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 148 } 149 catch (Exception ex) { 149 } catch (Exception ex) { 150 150 ErrorHandling.ShowErrorDialog(this, ex); 151 151 } … … 261 261 foreach (ListViewItem item in itemsListView.SelectedItems) 262 262 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()); 263 275 } 264 276 }
Note: See TracChangeset
for help on using the changeset viewer.