Changeset 16708 for stable/HeuristicLab.Scripting.Views/3.3
- Timestamp:
- 03/25/19 16:46:35 (6 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Scripting.Views/3.3/VariableStoreView.cs
r15584 r16708 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.