Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3111 for trunk


Ignore:
Timestamp:
03/19/10 10:59:24 (15 years ago)
Author:
svonolfe
Message:

Further implemented review comments (#917)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/Knapsack.cs

    r3110 r3111  
    206206      ParameterizeEvaluator();
    207207      ParameterizeSolutionCreator();
     208
     209      WeightsParameter.Value.Reset += new EventHandler(WeightsValue_Reset);
     210    }
     211    void WeightsValue_Reset(object sender, EventArgs e) {
     212      ParameterizeSolutionCreator();
    208213    }
    209214    void ValuesParameter_ValueChanged(object sender, EventArgs e) {
    210215      ParameterizeEvaluator();
     216      ParameterizeSolutionCreator();
     217
     218      ValuesParameter.Value.Reset += new EventHandler(ValuesValue_Reset);
     219    }
     220    void ValuesValue_Reset(object sender, EventArgs e) {
    211221      ParameterizeSolutionCreator();
    212222    }
     
    225235      KnapsackCapacityParameter.ValueChanged += new EventHandler(KnapsackCapacityParameter_ValueChanged);
    226236      WeightsParameter.ValueChanged += new EventHandler(WeightsParameter_ValueChanged);
     237      WeightsParameter.Value.Reset += new EventHandler(WeightsValue_Reset);
    227238      ValuesParameter.ValueChanged += new EventHandler(ValuesParameter_ValueChanged);
     239      ValuesParameter.Value.Reset += new EventHandler(ValuesValue_Reset);
    228240      PenaltyParameter.ValueChanged += new EventHandler(PenaltyParameter_ValueChanged);
    229241    }
Note: See TracChangeset for help on using the changeset viewer.