Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/10 03:07:12 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • replaced Changed in IItem by ToStringChanged
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperator.cs

    r2911 r2932  
    3737using HeuristicLab.PluginInfrastructure;
    3838using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     39using HeuristicLab.Collections;
    3940
    4041namespace HeuristicLab.Operators.Programmable {
     
    168169      Plugins = defaultPluginDict;
    169170      namespaces = new HashSet<string>(DiscoverNamespaces());
    170       Parameters.Changed += (s, a) => OnSignatureChanged(s, a);
    171     }
    172 
    173     protected void OnSignatureChanged(object sender, EventArgs args) {
     171      Parameters.ItemsAdded += (s, a) => OnSignatureChanged(s, a);
     172      Parameters.ItemsRemoved += (s, a) => OnSignatureChanged(s, a);
     173      Parameters.ItemsReplaced += (s, a) => OnSignatureChanged(s, a);
     174      Parameters.CollectionReset += (s, a) => OnSignatureChanged(s, a);
     175    }
     176
     177    protected void OnSignatureChanged(object sender, CollectionItemsChangedEventArgs<IParameter> args) {
    174178      if (SignatureChanged != null)
    175         SignatureChanged(sender, args);
     179        SignatureChanged(sender, EventArgs.Empty);
    176180    }
    177181
Note: See TracChangeset for help on using the changeset viewer.