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

    r2768 r2868  
    3737            bool valid = true;
    3838            //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)
    4040            {
    4141                MessageBox.Show("Nothing is selected, you need to select at least two items to create a group.", "Nothing selected.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
    4242                valid = false;
    43             }
    44             else if (Selection.SelectedItems.Count <= 1)
     43            } else if (this.Controller.Model.Selection.SelectedItems.Count <= 1)
    4544            {
    4645                MessageBox.Show("You need at least two items to create a group.", "Multiple items.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     
    4948            if (valid)
    5049            {
    51                 Bundle bundle = new Bundle(Selection.SelectedItems);
     50              Bundle bundle = new Bundle(this.Controller.Model.Selection.SelectedItems);
    5251
    5352                GroupCommand cmd = new GroupCommand(this.Controller, bundle);
Note: See TracChangeset for help on using the changeset viewer.