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/UngroupTool.cs

    r2768 r2868  
    3939           
    4040            //make sure we have the correct stuff on the table
    41             if (Selection.SelectedItems==null || Selection.SelectedItems.Count ==0)
     41            if (this.Controller.Model.Selection.SelectedItems == null || this.Controller.Model.Selection.SelectedItems.Count == 0)
    4242            {
    4343                MessageBox.Show("Nothing is selected, you need to select an existing group.", "Nothing selected.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
    4444                valid = false;               
    45             }
    46             else if (Selection.SelectedItems.Count != 1)
     45            } else if (this.Controller.Model.Selection.SelectedItems.Count != 1)
    4746            {
    4847                MessageBox.Show("Multiple items are selected, select only one group.", "Multiple items", MessageBoxButtons.OK, MessageBoxIcon.Hand);
    4948                valid = false;
    50             }
    51             else if (!(Selection.SelectedItems[0] is IGroup))
     49            } else if (!(this.Controller.Model.Selection.SelectedItems[0] is IGroup))
    5250            {
    5351                MessageBox.Show("The selected item is not a group.", "Not a group.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     
    5856            if (valid)
    5957            {
    60                 UngroupCommand cmd = new UngroupCommand(this.Controller, Selection.SelectedItems[0] as IGroup);
     58              UngroupCommand cmd = new UngroupCommand(this.Controller, this.Controller.Model.Selection.SelectedItems[0] as IGroup);
    6159                this.Controller.UndoManager.AddUndoCommand(cmd);
    6260                cmd.Redo();
Note: See TracChangeset for help on using the changeset viewer.