Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5307


Ignore:
Timestamp:
01/17/11 11:42:42 (14 years ago)
Author:
cneumuel
Message:

#1361 reverted changes of r5206

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs

    r5206 r5307  
    249249      base.Problem_OperatorsChanged(sender, e);
    250250    }
    251     void ElitesParameter_ValueChanging(object sender, EventArgs e) {
    252       Elites.ValueChanged -= new EventHandler(Elites_ValueChanged);
    253     }
    254251    private void ElitesParameter_ValueChanged(object sender, EventArgs e) {
    255252      Elites.ValueChanged += new EventHandler(Elites_ValueChanged);
     
    260257    }
    261258
    262     void PopulationSizeParameter_ValueChanging(object sender, EventArgs e) {
    263       PopulationSize.ValueChanged -= new EventHandler(PopulationSize_ValueChanged);
    264     }
    265259    private void PopulationSizeParameter_ValueChanged(object sender, EventArgs e) {
    266260      PopulationSize.ValueChanged += new EventHandler(PopulationSize_ValueChanged);
     
    279273    #region Helpers
    280274    private void Initialize() {
    281       PopulationSizeParameter.ValueChanging += new EventHandler(PopulationSizeParameter_ValueChanging);
    282275      PopulationSizeParameter.ValueChanged += new EventHandler(PopulationSizeParameter_ValueChanged);
    283276      PopulationSize.ValueChanged += new EventHandler(PopulationSize_ValueChanged);
    284       ElitesParameter.ValueChanging += new EventHandler(ElitesParameter_ValueChanging);
    285277      ElitesParameter.ValueChanged += new EventHandler(ElitesParameter_ValueChanged);
    286278      Elites.ValueChanged += new EventHandler(Elites_ValueChanged);
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/IValueParameter.cs

    r5206 r5307  
    2626    IItem Value { get; set; }
    2727    bool GetsCollected { get; set; }
    28     event EventHandler ValueChanging;
    2928    event EventHandler ValueChanged;
    3029    event EventHandler GetsCollectedChanged;
  • trunk/sources/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs

    r5206 r5307  
    5454        if (value != this.value) {
    5555          if ((value != null) && !validValues.Contains(value)) throw new ArgumentException("Invalid value.");
    56           OnValueChanging();
    5756          DeregisterValueEvents();
    5857          this.value = value;
     
    206205    }
    207206
    208     public event EventHandler ValueChanging;
    209     protected virtual void OnValueChanging() {
    210       EventHandler handler = ValueChanging;
    211       if (handler != null) handler(this, EventArgs.Empty);
    212     }
    213207    public event EventHandler ValueChanged;
    214208    protected virtual void OnValueChanged() {
  • trunk/sources/HeuristicLab.Parameters/3.3/ValueLookupParameter.cs

    r5206 r5307  
    4646      set {
    4747        if (value != this.value) {
    48           OnValueChanging();
    4948          DeregisterValueEvents();
    5049          this.value = value;
     
    160159    }
    161160
    162     public event EventHandler ValueChanging;
    163     protected virtual void OnValueChanging() {
    164       EventHandler handler = ValueChanging;
    165       if (handler != null) handler(this, EventArgs.Empty);
    166     }
    167161    public event EventHandler ValueChanged;
    168162    protected virtual void OnValueChanged() {
Note: See TracChangeset for help on using the changeset viewer.