- Timestamp:
- 05/19/11 15:46:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.cs
r6233 r6235 33 33 34 34 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { 35 36 35 [View("Variable View")] 37 36 [Content(typeof(Variable), true)] … … 138 137 } 139 138 } 140 141 139 private void multiplicativeWeightChangeSigmaTextBox_TextChanged(object sender, EventArgs e) { 142 140 double sigma; … … 162 160 RegisterVariableNamesViewContentEvents(); 163 161 } else { 164 var existingEntries = variableNamesView.Content. Select(x => x.Value);162 var existingEntries = variableNamesView.Content.ToList(); 165 163 166 164 // temporarily deregister to prevent circular calling of events 167 165 DeregisterVariableNamesViewContentEvents(); 168 166 // add additional entries 169 foreach (var variableName in Content.VariableNames.Except(existingEntries )) {167 foreach (var variableName in Content.VariableNames.Except(existingEntries.Select(x => x.Value))) 170 168 variableNamesView.Content.Add(new StringValue(variableName), true); 171 } 169 foreach (var oldEntry in existingEntries.Where(x => !Content.VariableNames.Contains(x.Value))) 170 variableNamesView.Content.Remove(oldEntry); 172 171 RegisterVariableNamesViewContentEvents(); 173 172
Note: See TracChangeset
for help on using the changeset viewer.