Changeset 2868 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Tools/SendForwardsTool.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/SendForwardsTool.cs
r2768 r2868 41 41 * is small. 42 42 */ 43 if(Selection.SelectedItems!=null && Selection.SelectedItems.Count>0)43 if (this.Controller.Model.Selection.SelectedItems != null && this.Controller.Model.Selection.SelectedItems.Count > 0) 44 44 { 45 45 … … 48 48 */ 49 49 #region Preparation of the ordering 50 Debug.Assert(Selection.SelectedItems[0] != null, "A selection cannot contain a 'null' entity.");50 Debug.Assert(this.Controller.Model.Selection.SelectedItems[0] != null, "A selection cannot contain a 'null' entity."); 51 51 //the items have to be moved in the order of the Paintables; the SortedList automatically orders things for us. 52 52 SortedList<int, IDiagramEntity> list = new SortedList<int,IDiagramEntity>(); 53 53 //We fetch a flattened selection, which means that if there is a group the constituents will be 54 54 //returned rather than the group itself. 55 foreach (IDiagramEntity entity inSelection.FlattenedSelectionItems)55 foreach (IDiagramEntity entity in this.Controller.Model.Selection.FlattenedSelectionItems) 56 56 { 57 57 //the addition will automatically put the item in increasing order
Note: See TracChangeset
for help on using the changeset viewer.