Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7861


Ignore:
Timestamp:
05/21/12 15:44:00 (13 years ago)
Author:
svonolfe
Message:

Fixed issues related to display of VRP solution (#1177)

Location:
branches/VRP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting.Views/3.4/VRPSolutionView.cs

    r6607 r7861  
    4141    public VRPSolutionView() {
    4242      InitializeComponent();
     43      problemInstanceView.ViewsLabelVisible = false;
    4344    }
    4445
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r7853 r7861  
    182182    private void AttachEventHandlers() {
    183183      ProblemInstanceParameter.ValueChanged += new EventHandler(ProblemInstanceParameter_ValueChanged);
     184      BestKnownSolutionParameter.ValueChanged += new EventHandler(BestKnownSolutionParameter_ValueChanged);
    184185    }
    185186
     
    197198    }
    198199
    199     void ProblemInstance_EvaluationChanged(object sender, EventArgs e) {
     200    private void EvalBestKnownSolution() {
    200201      if (BestKnownSolution != null) {
    201202        //call evaluator
     
    205206        BestKnownQuality = null;
    206207      }
     208    }
     209
     210    void BestKnownSolutionParameter_ValueChanged(object sender, EventArgs e) {
     211      EvalBestKnownSolution();
     212    }
     213
     214    void ProblemInstance_EvaluationChanged(object sender, EventArgs e) {
     215      EvalBestKnownSolution();
    207216    }
    208217
Note: See TracChangeset for help on using the changeset viewer.