- Timestamp:
- 09/17/19 13:57:57 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataConstraintView.cs
r17250 r17256 80 80 Content.Constraints = parsedConstraints; 81 81 Content.Input = constraintsInput.Text; 82 errorOutput.ForeColor = Color.DarkGreen;83 errorOutput.Text = "Constraints successfully parsed.";82 Content.InfoText = "Constraints successfully parsed."; 83 Content.InfoColor = Color.DarkGreen; 84 84 //Catch the exception from the constraints parser and show it in the error dialog 85 85 } catch(ArgumentException ex) { 86 86 Content.Constraints = new List<IntervalConstraint>(); 87 errorOutput.ForeColor = Color.DarkRed;88 errorOutput.Text = ex.Message.Replace("Parameter name", "@Line");87 Content.InfoText = ex.Message.Replace("Parameter name", "@Line"); 88 Content.InfoColor = Color.DarkRed; 89 89 } 90 90 } else { … … 100 100 intervalConstraints.Clear(); 101 101 constraintsInput.Text = Content.Input; 102 errorOutput.ForeColor = Content.InfoColor; 103 errorOutput.Text = Content.InfoText; 102 104 foreach (var constraint in Content.Constraints) { 103 105 intervalConstraints.Add(constraint, constraint.Enabled); … … 135 137 private void constraintsInput_TextChanged(object sender, EventArgs e) { 136 138 if (Content.Input != constraintsInput.Text) { 137 errorOutput.ForeColor = Color.DarkOrange;138 errorOutput.Text = "Unparsed changes! Press parse button to save changes.";139 Content.Input = constraintsInput.Text;139 Content.Input = constraintsInput.Text; 140 Content.InfoText = "Unparsed changes! Press parse button to save changes."; 141 Content.InfoColor = Color.DarkOrange; 140 142 } else { 141 143 errorOutput.Text = "";
Note: See TracChangeset
for help on using the changeset viewer.