Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/12/17 21:07:36 (7 years ago)
Author:
abeham
Message:

#2696, #2790: merged revisions 15072, 15083, 15168 to stable

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.VehicleRouting

  • stable/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPProblemInstance.cs

    r14186 r15219  
    110110
    111111    private void AttachEventHandlers() {
    112       CapacityParameter.ValueChanged += new EventHandler(CapacityParameter_ValueChanged);
    113       OverloadPenaltyParameter.ValueChanged += new EventHandler(OverloadPenaltyParameter_ValueChanged);
    114       OverloadPenaltyParameter.Value.ValueChanged += new EventHandler(OverloadPenalty_ValueChanged);
     112      CapacityParameter.ValueChanged += CapacityParameter_ValueChanged;
     113      Capacity.Reset += Capacity_Changed;
     114      Capacity.ItemChanged += Capacity_Changed;
     115      OverloadPenaltyParameter.ValueChanged += OverloadPenaltyParameter_ValueChanged;
     116      OverloadPenalty.ValueChanged += OverloadPenalty_ValueChanged;
    115117    }
    116118
     
    123125    #region Event handlers
    124126    void CapacityParameter_ValueChanged(object sender, EventArgs e) {
     127      Capacity.Reset += Capacity_Changed;
     128      Capacity.ItemChanged += Capacity_Changed;
     129      EvalBestKnownSolution();
     130    }
     131    private void Capacity_Changed(object sender, EventArgs e) {
    125132      EvalBestKnownSolution();
    126133    }
    127134    void OverloadPenaltyParameter_ValueChanged(object sender, EventArgs e) {
    128       OverloadPenaltyParameter.Value.ValueChanged += new EventHandler(OverloadPenalty_ValueChanged);
     135      OverloadPenalty.ValueChanged += OverloadPenalty_ValueChanged;
    129136      EvalBestKnownSolution();
    130137    }
Note: See TracChangeset for help on using the changeset viewer.