Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10213


Ignore:
Timestamp:
12/10/13 10:29:52 (11 years ago)
Author:
ascheibe
Message:

#2127 fixed refreshing of visualization in job shop scheduling problem view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Scheduling.Views/3.3/JobShopSchedulingProblemView.cs

    r9456 r10213  
    5050    }
    5151
     52    protected override void DeregisterContentEvents() {
     53      Content.JobDataParameter.ValueChanged -= JobDataParameter_ValueChanged;
     54      base.DeregisterContentEvents();
     55    }
     56    protected override void RegisterContentEvents() {
     57      base.RegisterContentEvents();
     58      Content.JobDataParameter.ValueChanged += JobDataParameter_ValueChanged;
     59    }
     60
     61    void JobDataParameter_ValueChanged(object sender, System.EventArgs e) {
     62      if (Content != null) {
     63        FillGanttChart(Content);
     64      }
     65    }
     66
    5267    private void FillGanttChart(JobShopSchedulingProblem content) {
    5368      ganttChart.Reset();
Note: See TracChangeset for help on using the changeset viewer.