- Timestamp:
- 02/05/15 10:33:54 (10 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11346
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Job.cs
r11170 r11903 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.