Changeset 16964 for branches/2971_named_intervals
- Timestamp:
- 05/17/19 13:01:52 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/IntervalConstraint.cs
r16937 r16964 33 33 get => expression; 34 34 private set { 35 if (expression != value) { 36 expression = value; 37 OnChanged(); 38 OnToStringChanged(); 39 } 35 if (expression == value) return; 36 expression = value; 37 OnChanged(); 38 OnToStringChanged(); 40 39 } 41 40 } … … 50 49 get => variable; 51 50 private set { 52 if (variable != value) { 53 variable = value; 54 UpdateExpression(); 55 OnChanged(); 56 } 51 if (variable == value) return; 52 variable = value; 53 UpdateExpression(); 54 OnChanged(); 57 55 } 58 56 } … … 63 61 get => target; 64 62 set { 65 if (target != value) { 66 target = value; 67 UpdateExpression(); 68 OnChanged(); 69 } 63 if (target == value) return; 64 target = value; 65 UpdateExpression(); 66 OnChanged(); 70 67 } 71 68 } … … 80 77 get => numberOfDerivation; 81 78 set { 82 if (value < 0 || value > 3) 83 throw new ArgumentException("Number of derivation has to be between 0 - 3."); 84 if (numberOfDerivation != value) { 85 numberOfDerivation = value; 86 UpdateExpression(); 87 OnChanged(); 88 } 79 if (value < 0 || value > 3) throw new ArgumentException("Number of derivation has to be between 0 - 3."); 80 if (numberOfDerivation == value) return; 81 numberOfDerivation = value; 82 UpdateExpression(); 83 OnChanged(); 89 84 } 90 85 } … … 95 90 get => interval; 96 91 set { 97 if (interval != value) { 98 interval = value; 99 UpdateExpression(); 100 OnChanged(); 101 } 92 if (interval == value) return; 93 interval = value; 94 UpdateExpression(); 95 OnChanged(); 102 96 } 103 97 } … … 108 102 get => inclusiveLowerBound; 109 103 set { 110 if (inclusiveLowerBound != value) { 111 inclusiveLowerBound = value; 112 UpdateExpression(); 113 OnChanged(); 114 } 104 if (inclusiveLowerBound == value) return; 105 inclusiveLowerBound = value; 106 UpdateExpression(); 107 OnChanged(); 115 108 } 116 109 } … … 121 114 get => inclusiveUpperBound; 122 115 set { 123 if (inclusiveUpperBound != value) { 124 inclusiveUpperBound = value; 125 UpdateExpression(); 126 OnChanged(); 127 } 116 if (inclusiveUpperBound == value) return; 117 inclusiveUpperBound = value; 118 UpdateExpression(); 119 OnChanged(); 128 120 } 129 121 } … … 134 126 get => enabled; 135 127 set { 136 if (value != enabled) { 137 enabled = value; 138 OnChanged(); 139 } 128 if (enabled == value) return; 129 enabled = value; 130 OnChanged(); 140 131 } 141 132 }
Note: See TracChangeset
for help on using the changeset viewer.