- Timestamp:
- 05/09/19 14:31:29 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ParsedConstraintView.cs
r16918 r16938 51 51 intervalConstraints.CheckedItemsChanged += constraint_CheckedItemChanged; 52 52 intervalConstraints.ItemsAdded += constraints_Updated; 53 intervalConstraints.ItemsRemoved += constraint_removed; 53 intervalConstraints.ItemsRemoved += constraint_removed; 54 Content.Changed += Content_Changed; 54 55 } 55 56 … … 58 59 intervalConstraints.ItemsAdded -= constraints_Updated; 59 60 intervalConstraints.ItemsRemoved -= constraint_removed; 61 Content.Changed -= Content_Changed; 60 62 base.DeregisterContentEvents(); 61 63 } … … 71 73 intervalConstraints.Clear(); 72 74 var parsedConstraints = ParseConstraints(constraintsInput.Text); 73 foreach (var constraint in parsedConstraints) { 74 intervalConstraints.Add(constraint, constraint.Enabled); 75 } 76 constraintsOutput.Content = intervalConstraints; 77 Content.Constraints = intervalConstraints; 75 Content.Constraints = parsedConstraints; 78 76 Content.Input = constraintsInput.Text; 79 77 errorOutput.Text = ""; … … 86 84 if (Content == null) { 87 85 intervalConstraints.Clear(); 88 constraintsOutput.Content = intervalConstraints .AsReadOnly();86 constraintsOutput.Content = intervalConstraints; 89 87 } else { 90 88 intervalConstraints.Clear(); … … 94 92 } 95 93 96 constraintsOutput.Content = intervalConstraints .AsReadOnly();94 constraintsOutput.Content = intervalConstraints; 97 95 } 98 96 } … … 127 125 } 128 126 127 private void Content_Changed(object sender, EventArgs e) { 128 UpdateControl(); 129 } 130 129 131 } 130 132 }
Note: See TracChangeset
for help on using the changeset viewer.