- Timestamp:
- 04/22/10 05:14:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CopyToClipboardMenuItem.cs
r3416 r3483 39 39 get { return 2100; } 40 40 } 41 public override Keys ShortCutKeys {42 get { return Keys.Control | Keys.C; }43 }44 41 45 42 protected override void OnToolStripItemSet(EventArgs e) { … … 48 45 protected override void OnActiveViewChanged(object sender, EventArgs e) { 49 46 ItemView activeView = MainFormManager.MainForm.ActiveView as ItemView; 50 ToolStripItem.Enabled = (activeView != null) && ( !activeView.Locked);47 ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) && !activeView.Locked; 51 48 } 52 49 53 50 public override void Execute() { 54 51 ItemView activeView = MainFormManager.MainForm.ActiveView as ItemView; 55 if ((activeView != null) && ( !activeView.Locked)) {52 if ((activeView != null) && (activeView.Content != null) && !activeView.Locked) { 56 53 Clipboard<IItem> clipboard = ((OptimizerMainForm)MainFormManager.MainForm).Clipboard; 57 54 clipboard.AddItem((IItem)activeView.Content.Clone());
Note: See TracChangeset
for help on using the changeset viewer.