Changeset 6415 for branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols
- Timestamp:
- 06/15/11 23:02:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.cs
r6236 r6415 80 80 protected override void OnContentChanged() { 81 81 base.OnContentChanged(); 82 variableNamesView.Content.Clear();83 82 UpdateControl(); 84 83 } … … 105 104 private void variableNames_Changed(object sender, CollectionItemsChangedEventArgs<StringValue> args) { 106 105 if (Content != null) { 107 Content.Changed -= new EventHandler(Content_Changed);106 DeregisterContentEvents(); 108 107 Content.VariableNames = variableNamesView.Content.CheckedItems.Select(x => x.Value).ToList(); 109 Content.Changed += new EventHandler(Content_Changed);108 RegisterContentEvents(); 110 109 } 111 110 }
Note: See TracChangeset
for help on using the changeset viewer.