Changeset 16880
- Timestamp:
- 05/02/19 08:36:49 (6 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalConstraintView.cs
r16862 r16880 67 67 definitionInput.ReadOnly = true; 68 68 expressionInput.ReadOnly = true; 69 variableInput.ReadOnly = true; 69 70 } 70 71 … … 148 149 } 149 150 151 private static string UpdateDefintion(IntervalConstraint constraint) { 152 var definition = ""; 153 154 if (!constraint.IsDerivation) { 155 return "Target " + constraint.Variable; 156 } 157 158 definition = $"\u2202{GetDerivationString(constraint.numberOfDerivation)}Target/\u2202{constraint.Variable}{GetDerivationString(constraint.numberOfDerivation)}"; 159 160 return definition; 161 } 162 150 163 private static string GetDerivationString(int derivation) { 151 164 switch (derivation) { … … 247 260 248 261 var exp = UpdateExpression(Content); 262 var def = UpdateDefintion(Content); 249 263 Content.Name = exp; 250 264 Content.Expression = exp; 265 Content.Definition = def; 251 266 } 252 267 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraint.cs
r16830 r16880 38 38 } 39 39 } 40 public string Definition { get; set; } 40 41 private string definition; 42 43 public string Definition { 44 get => definition; 45 set { 46 if (value != definition) { 47 definition = value; 48 OnChanged(EventArgs.Empty); 49 } 50 } 51 } 41 52 public Interval Interval { get; set; } 42 53 private bool inclusiveLowerBound;
Note: See TracChangeset
for help on using the changeset viewer.