Changeset 2868 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Tools/AlignTool.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/AlignTool.cs
r2768 r2868 63 63 64 64 //make sure we have the correct stuff on the table 65 if ( Selection.SelectedItems==null || Selection.SelectedItems.Count ==0)65 if (this.Controller.Model.Selection.SelectedItems == null || this.Controller.Model.Selection.SelectedItems.Count == 0) 66 66 { 67 67 MessageBox.Show("Nothing is selected, you need to select an existing group.", "Nothing selected.", MessageBoxButtons.OK, MessageBoxIcon.Hand); 68 68 valid = false; 69 } 70 else if (Selection.SelectedItems.Count != 1) 69 } else if (this.Controller.Model.Selection.SelectedItems.Count != 1) 71 70 { 72 71 MessageBox.Show("Multiple items are selected, select only one group.", "Multiple items", MessageBoxButtons.OK, MessageBoxIcon.Hand); 73 72 valid = false; 74 } 75 else if (!(Selection.SelectedItems[0] is IGroup)) 73 } else if (!(this.Controller.Model.Selection.SelectedItems[0] is IGroup)) 76 74 { 77 75 MessageBox.Show("The selected item is not a group.", "Not a group.", MessageBoxButtons.OK, MessageBoxIcon.Hand); … … 83 81 { 84 82 UngroupCommand cmd = new UngroupCommand( 85 this.Controller, 86 83 this.Controller, 84 this.Controller.Model.Selection.SelectedItems[0] as IGroup); 87 85 88 86 this.Controller.UndoManager.AddUndoCommand(cmd);
Note: See TracChangeset
for help on using the changeset viewer.