Ignore:
Timestamp:
05/07/10 23:57:43 (12 years ago)
Author:
swagner
Message:

Fixed update of best known quality in the TSP visualization (#924)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views/3.3/TravelingSalesmanProblemView.cs

    r3616 r3712  
    5050    protected override void DeregisterContentEvents() {
    5151      Content.CoordinatesParameter.ValueChanged -= new EventHandler(CoordinatesParameter_ValueChanged);
     52      Content.BestKnownQualityParameter.ValueChanged -= new EventHandler(BestKnownQualityParameter_ValueChanged);
    5253      Content.BestKnownSolutionParameter.ValueChanged -= new EventHandler(BestKnownSolutionParameter_ValueChanged);
    5354      base.DeregisterContentEvents();
     
    5657      base.RegisterContentEvents();
    5758      Content.CoordinatesParameter.ValueChanged += new EventHandler(CoordinatesParameter_ValueChanged);
     59      Content.BestKnownQualityParameter.ValueChanged += new EventHandler(BestKnownQualityParameter_ValueChanged);
    5860      Content.BestKnownSolutionParameter.ValueChanged += new EventHandler(BestKnownSolutionParameter_ValueChanged);
    5961    }
     
    101103      pathTSPTourView.Content.Coordinates = Content.Coordinates;
    102104    }
     105    private void BestKnownQualityParameter_ValueChanged(object sender, EventArgs e) {
     106      pathTSPTourView.Content.Quality = Content.BestKnownQuality;
     107    }
    103108    private void BestKnownSolutionParameter_ValueChanged(object sender, EventArgs e) {
    104109      pathTSPTourView.Content.Permutation = Content.BestKnownSolution;
Note: See TracChangeset for help on using the changeset viewer.