- Timestamp:
- 09/17/19 13:57:57 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ProblemDataConstraint.cs
r17146 r17256 23 23 using System; 24 24 using System.Collections.Generic; 25 using System.Drawing; 25 26 using System.Linq; 26 27 using HEAL.Attic; … … 50 51 51 52 [Storable] 53 private string infoText; 54 public string InfoText { 55 get => infoText; 56 set { 57 if (infoText == value) return; 58 infoText = value; 59 OnChanged(); 60 } 61 } 62 63 [Storable] 64 private Color infoColor; 65 public Color InfoColor { 66 get => infoColor; 67 set { 68 if (infoColor == value) return; 69 infoColor = value; 70 OnChanged(); 71 } 72 } 73 74 [Storable] 52 75 private IEnumerable<IntervalConstraint> constraints; 53 76 public IEnumerable<IntervalConstraint> Constraints { … … 68 91 : base(original, cloner) { 69 92 this.Input = original.Input; 93 this.InfoText = original.InfoText; 94 this.infoColor = original.InfoColor; 70 95 this.constraints = original.Constraints.Select(cloner.Clone).ToList(); 71 96 this.ProblemData = cloner.Clone(original.ProblemData); … … 78 103 public ProblemDataConstraint() : base() { 79 104 this.Input = exampleInput; 105 this.InfoText = ""; 106 this.InfoColor = Color.DarkOrange; 80 107 this.constraints = new List<IntervalConstraint>(); 81 108 this.ProblemData = null; … … 84 111 public ProblemDataConstraint(IRegressionProblemData problemData) : base() { 85 112 this.Input = exampleInput; 113 this.InfoText = infoText; 114 this.InfoColor = InfoColor; 86 115 this.constraints = new List<IntervalConstraint>(); 87 116 this.ProblemData = problemData;
Note: See TracChangeset
for help on using the changeset viewer.