Changeset 11268


Ignore:
Timestamp:
08/05/14 10:43:57 (5 years ago)
Author:
pfleck
Message:

#2208 added additional missing value changed event handlers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.cs

    r11266 r11268  
    4242      Content.QualityChanged -= new EventHandler(Content_QualityChanged);
    4343      Content.CoordinatesChanged -= new EventHandler(Content_CoordinatesChanged);
     44      Content.StartingPointChanged -= new EventHandler(Content_StartingPointChanged);
     45      Content.TerminusPointChanged -= new EventHandler(Content_TerminusPointChanged);
    4446      Content.ScoresChanged -= new EventHandler(Content_ScoresChanged);
    4547      Content.IntegerVectorChanged -= new EventHandler(Content_IntegerVectorChanged);
     
    5052      Content.QualityChanged += new EventHandler(Content_QualityChanged);
    5153      Content.CoordinatesChanged += new EventHandler(Content_CoordinatesChanged);
     54      Content.StartingPointChanged += new EventHandler(Content_StartingPointChanged);
     55      Content.TerminusPointChanged += new EventHandler(Content_TerminusPointChanged);
    5256      Content.ScoresChanged += new EventHandler(Content_ScoresChanged);
    5357      Content.IntegerVectorChanged += new EventHandler(Content_IntegerVectorChanged);
     
    153157        GenerateImage();
    154158    }
     159    private void Content_StartingPointChanged(object sender, EventArgs e) {
     160      if (InvokeRequired)
     161        Invoke(new EventHandler(Content_StartingPointChanged), sender, e);
     162      else
     163        GenerateImage();
     164    }
     165    private void Content_TerminusPointChanged(object sender, EventArgs e) {
     166      if (InvokeRequired)
     167        Invoke(new EventHandler(Content_TerminusPointChanged), sender, e);
     168      else
     169        GenerateImage();
     170    }
    155171    private void Content_ScoresChanged(object sender, EventArgs e) {
    156172      if (InvokeRequired)
Note: See TracChangeset for help on using the changeset viewer.