Changeset 16529 for branches/2520_PersistenceReintegration/HeuristicLab.Scripting.Views/3.3/VariableStoreView.cs
- Timestamp:
- 01/10/19 15:40:44 (5 years ago)
- Location:
- branches/2520_PersistenceReintegration
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2520_PersistenceReintegration
- Property svn:mergeinfo changed
-
branches/2520_PersistenceReintegration/HeuristicLab.Scripting.Views/3.3/VariableStoreView.cs
r16479 r16529 91 91 Content.ItemsRemoved -= Content_ItemsRemoved; 92 92 Content.CollectionReset -= Content_CollectionReset; 93 94 foreach (var variable in Content) { 95 var item = variable.Value as IItem; 96 if (item != null) item.ToStringChanged -= item_ToStringChanged; 97 } 98 93 99 base.DeregisterContentEvents(); 94 100 } 95 101 protected override void RegisterContentEvents() { 96 102 base.RegisterContentEvents(); 103 97 104 Content.ItemsAdded += Content_ItemsAdded; 98 105 Content.ItemsReplaced += Content_ItemsReplaced; 99 106 Content.ItemsRemoved += Content_ItemsRemoved; 100 107 Content.CollectionReset += Content_CollectionReset; 108 109 foreach (var variable in Content) { 110 var item = variable.Value as IItem; 111 if (item != null) item.ToStringChanged += item_ToStringChanged; 112 } 101 113 } 102 114
Note: See TracChangeset
for help on using the changeset viewer.