Changeset 2868 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Tools/GroupTool.cs
- Timestamp:
- 02/25/10 17:28:31 (15 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/GroupTool.cs
r2768 r2868 37 37 bool valid = true; 38 38 //make sure we have the correct stuff on the table 39 if ( Selection.SelectedItems == null ||Selection.SelectedItems.Count == 0)39 if (this.Controller.Model.Selection.SelectedItems == null || this.Controller.Model.Selection.SelectedItems.Count == 0) 40 40 { 41 41 MessageBox.Show("Nothing is selected, you need to select at least two items to create a group.", "Nothing selected.", MessageBoxButtons.OK, MessageBoxIcon.Hand); 42 42 valid = false; 43 } 44 else if (Selection.SelectedItems.Count <= 1) 43 } else if (this.Controller.Model.Selection.SelectedItems.Count <= 1) 45 44 { 46 45 MessageBox.Show("You need at least two items to create a group.", "Multiple items.", MessageBoxButtons.OK, MessageBoxIcon.Hand); … … 49 48 if (valid) 50 49 { 51 Bundle bundle = new Bundle(Selection.SelectedItems);50 Bundle bundle = new Bundle(this.Controller.Model.Selection.SelectedItems); 52 51 53 52 GroupCommand cmd = new GroupCommand(this.Controller, bundle);
Note: See TracChangeset
for help on using the changeset viewer.