Ignore:
Timestamp:
04/14/10 10:09:49 (12 years ago)
Author:
mkommend
Message:

added reaction to operator image changes and changed collapse and expand icons (ticket #867)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/GraphVisualizationInfo.cs

    r3017 r3344  
    279279    }
    280280
     281    private void OperatorItemImageChanged(object sender, EventArgs e) {
     282      IOperator op = (IOperator)sender;
     283      IOperatorShapeInfo operatorShapeInfo = this.operatorShapeInfoMapping.GetByFirst(op);
     284      operatorShapeInfo.Icon = new Bitmap(op.ItemImage);
     285    }
     286
    281287    private void OperatorNameChanged(object sender, EventArgs e) {
    282288      IOperator op = (IOperator)sender;
     
    306312      op.Parameters.CollectionReset += new CollectionItemsChangedEventHandler<IParameter>(Parameters_CollectionReset);
    307313      op.NameChanged += new EventHandler(OperatorNameChanged);
     314      op.ItemImageChanged += new EventHandler(OperatorItemImageChanged);
    308315      op.BreakpointChanged += new EventHandler(OperatorBreakpointChanged);
    309316    }
     
    315322      op.Parameters.CollectionReset -= new CollectionItemsChangedEventHandler<IParameter>(Parameters_CollectionReset);
    316323      op.NameChanged -= new EventHandler(OperatorNameChanged);
     324      op.ItemImageChanged -= new EventHandler(OperatorItemImageChanged);
    317325      op.BreakpointChanged -= new EventHandler(OperatorBreakpointChanged);
    318326    }
Note: See TracChangeset for help on using the changeset viewer.