Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/25/10 17:28:31 (15 years ago)
Author:
mkommend
Message:

finished mapping from OperatorGraph to GraphVisualizationInfo (ticket #867)

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  
    6363           
    6464            //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)
    6666            {
    6767                MessageBox.Show("Nothing is selected, you need to select an existing group.", "Nothing selected.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
    6868                valid = false;               
    69             }
    70             else if (Selection.SelectedItems.Count != 1)
     69            } else if (this.Controller.Model.Selection.SelectedItems.Count != 1)
    7170            {
    7271                MessageBox.Show("Multiple items are selected, select only one group.", "Multiple items", MessageBoxButtons.OK, MessageBoxIcon.Hand);
    7372                valid = false;
    74             }
    75             else if (!(Selection.SelectedItems[0] is IGroup))
     73            } else if (!(this.Controller.Model.Selection.SelectedItems[0] is IGroup))
    7674            {
    7775                MessageBox.Show("The selected item is not a group.", "Not a group.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     
    8381            {
    8482                UngroupCommand cmd = new UngroupCommand(
    85                     this.Controller, 
    86                     Selection.SelectedItems[0] as IGroup);
     83                    this.Controller,
     84                   this.Controller.Model.Selection.SelectedItems[0] as IGroup);
    8785
    8886                this.Controller.UndoManager.AddUndoCommand(cmd);
Note: See TracChangeset for help on using the changeset viewer.