Changeset 11346 for trunk/sources/HeuristicLab.Encodings.ScheduleEncoding
- Timestamp:
- 09/05/14 10:39:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Job.cs
r11171 r11346 101 101 private void RegisterEventHandlers() { 102 102 Tasks.ItemsAdded += TasksOnItemsChanged; 103 Tasks.ItemsRemoved += TasksOnItems Changed;103 Tasks.ItemsRemoved += TasksOnItemsRemoved; 104 104 Tasks.ItemsReplaced += TasksOnItemsChanged; 105 105 Tasks.CollectionReset += TasksOnItemsChanged; … … 118 118 task.Value.PropertyChanged += TaskOnPropertyChanged; 119 119 task.Value.ToStringChanged += TaskOnToStringChanged; 120 } 121 OnTasksChanged(); 122 OnToStringChanged(); 123 } 124 125 private void TasksOnItemsRemoved(object sender, CollectionItemsChangedEventArgs<IndexedItem<Task>> e) { 126 foreach (var task in e.Items) { 127 task.Value.PropertyChanged -= TaskOnPropertyChanged; 128 task.Value.ToStringChanged -= TaskOnToStringChanged; 120 129 } 121 130 OnTasksChanged();
Note: See TracChangeset
for help on using the changeset viewer.