Ignore:
Timestamp:
02/05/15 10:33:54 (6 years ago)
Author:
abeham
Message:

#2241: merged to stable

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.Scheduling.Views/3.3/JobShopSchedulingProblemView.cs

    r11170 r11903  
    5252      Content.JobDataParameter.ValueChanged -= JobDataParameterOnValueChanged;
    5353      Content.JobData.ItemsAdded -= JobsOnChanged;
    54       Content.JobData.ItemsRemoved -= JobsOnChanged;
     54      Content.JobData.ItemsRemoved -= JobsOnRemoved;
    5555      Content.JobData.ItemsReplaced -= JobsOnChanged;
    5656      Content.JobData.CollectionReset -= JobsOnChanged;
     
    6464      Content.JobDataParameter.ValueChanged += JobDataParameterOnValueChanged;
    6565      Content.JobData.ItemsAdded += JobsOnChanged;
    66       Content.JobData.ItemsRemoved += JobsOnChanged;
     66      Content.JobData.ItemsRemoved += JobsOnRemoved;
    6767      Content.JobData.ItemsReplaced += JobsOnChanged;
    6868      Content.JobData.CollectionReset += JobsOnChanged;
     
    8080    }
    8181
     82    private void JobsOnRemoved(object sender, CollectionItemsChangedEventArgs<IndexedItem<Job>> e) {
     83      foreach (var job in e.Items)
     84        job.Value.TasksChanged -= JobOnTasksChanged;
     85      FillGanttChart();
     86    }
     87
    8288    private void JobDataParameterOnValueChanged(object sender, EventArgs e) {
    8389      Content.JobData.ItemsAdded += JobsOnChanged;
    84       Content.JobData.ItemsRemoved += JobsOnChanged;
     90      Content.JobData.ItemsRemoved += JobsOnRemoved;
    8591      Content.JobData.ItemsReplaced += JobsOnChanged;
    8692      Content.JobData.CollectionReset += JobsOnChanged;
Note: See TracChangeset for help on using the changeset viewer.