Changeset 2868 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Tools/CopyTool.cs
- Timestamp:
- 02/25/10 17:28:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Tools/CopyTool.cs
r2768 r2868 42 42 protected override void OnActivateTool() 43 43 { 44 if(Selection.SelectedItems.Count == 0)44 if (this.Controller.Model.Selection.SelectedItems.Count == 0) 45 45 return; 46 46 … … 54 54 // First add the image to the Windows Clipboard so it can be 55 55 // pasted into other applications, like PowerPoint. 56 Bitmap image = Selection.ToBitmap();56 Bitmap image = this.Controller.Model.Selection.ToBitmap(); 57 57 Clipboard.SetDataObject(image, true); 58 58 … … 75 75 // Windows clipboard for moving data across apps. 76 76 NetronClipboard.Clear(); 77 NetronClipboard.Add( Selection.SelectedItems.Copy());77 NetronClipboard.Add(this.Controller.Model.Selection.SelectedItems.Copy()); 78 78 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.