- Timestamp:
- 04/09/19 14:58:24 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ParsedConstraintView.cs
r16772 r16773 1 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Drawing; 5 using System.Data; 6 using System.Linq; 7 using System.Text; 8 using System.Threading.Tasks; 9 using System.Windows.Forms; 2 10 3 using HeuristicLab.Core; 11 4 using HeuristicLab.MainForm; … … 21 14 set => base.Content = value; 22 15 } 16 23 17 public ParsedConstraintView() { 24 18 InitializeComponent(); … … 38 32 39 33 private ItemList<IntervalConstraint> ParseConstraints(string input) { 40 ItemList<IntervalConstraint> constraints = new ItemList<IntervalConstraint>(IntervalConstraintsParser.Parse (input));34 ItemList<IntervalConstraint> constraints = new ItemList<IntervalConstraint>(IntervalConstraintsParser.ParseInput(input, Content.TargetVariable, Content.AllowedVariables)); 41 35 return constraints; 42 }43 44 private string ConstraintsOutput(IEnumerable<IntervalConstraint> constraints) {45 var result = "";46 var count = 1;47 foreach (var constraint in constraints) {48 result += "Constraint #" + count + ": " + Environment.NewLine;49 result += constraint.Expression + Environment.NewLine + Environment.NewLine;50 count++;51 }52 53 return result;54 36 } 55 37
Note: See TracChangeset
for help on using the changeset viewer.