Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/19 16:46:35 (6 years ago)
Author:
gkronber
Message:

#2982: merged r16526 from trunk to stable

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Scripting.Views/3.3/VariableStoreView.cs

    r15584 r16708  
    9090      Content.ItemsRemoved -= Content_ItemsRemoved;
    9191      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
    9298      base.DeregisterContentEvents();
    9399    }
    94100    protected override void RegisterContentEvents() {
    95101      base.RegisterContentEvents();
     102
    96103      Content.ItemsAdded += Content_ItemsAdded;
    97104      Content.ItemsReplaced += Content_ItemsReplaced;
    98105      Content.ItemsRemoved += Content_ItemsRemoved;
    99106      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      }
    100112    }
    101113
Note: See TracChangeset for help on using the changeset viewer.