- Timestamp:
- 01/10/19 11:59:30 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Scripting.Views/3.3/VariableStoreView.cs
r15583 r16526 90 90 Content.ItemsRemoved -= Content_ItemsRemoved; 91 91 Content.CollectionReset -= Content_CollectionReset; 92 93 foreach (var variable in Content) { 94 var item = variable.Value as IItem; 95 if (item != null) item.ToStringChanged -= item_ToStringChanged; 96 } 97 92 98 base.DeregisterContentEvents(); 93 99 } 94 100 protected override void RegisterContentEvents() { 95 101 base.RegisterContentEvents(); 102 96 103 Content.ItemsAdded += Content_ItemsAdded; 97 104 Content.ItemsReplaced += Content_ItemsReplaced; 98 105 Content.ItemsRemoved += Content_ItemsRemoved; 99 106 Content.CollectionReset += Content_CollectionReset; 107 108 foreach (var variable in Content) { 109 var item = variable.Value as IItem; 110 if (item != null) item.ToStringChanged += item_ToStringChanged; 111 } 100 112 } 101 113
Note: See TracChangeset
for help on using the changeset viewer.