Changeset 2932 for trunk/sources/HeuristicLab.Operators.Programmable
- Timestamp:
- 03/05/10 03:07:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperator.cs
r2911 r2932 37 37 using HeuristicLab.PluginInfrastructure; 38 38 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 39 using HeuristicLab.Collections; 39 40 40 41 namespace HeuristicLab.Operators.Programmable { … … 168 169 Plugins = defaultPluginDict; 169 170 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) { 174 178 if (SignatureChanged != null) 175 SignatureChanged(sender, args);179 SignatureChanged(sender, EventArgs.Empty); 176 180 } 177 181
Note: See TracChangeset
for help on using the changeset viewer.