Changeset 8590 for branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ParameterConfigurations
- Timestamp:
- 09/06/12 14:45:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ParameterConfigurations/ParameterConfiguration.cs
r8574 r8590 96 96 protected Type parameterDataType; 97 97 public Type ParameterDataType { 98 get { return this.parameterDataType; }98 get { return parameterDataType; } 99 99 } 100 100 … … 103 103 get { return validTypes; } 104 104 protected set { 105 if ( this.validTypes != value) {106 this.validTypes = value;105 if (validTypes != value) { 106 validTypes = value; 107 107 } 108 108 } … … 113 113 public Type ValueDataType { 114 114 get { return valueDataType; } 115 protected set { this.valueDataType = value; }115 protected set { valueDataType = value; } 116 116 } 117 117 … … 119 119 protected ICheckedValueConfigurationList valueConfigurations; 120 120 public ICheckedValueConfigurationList ValueConfigurations { 121 get { return this.valueConfigurations; }121 get { return valueConfigurations; } 122 122 protected set { 123 if ( this.valueConfigurations != value) {124 if ( this.valueConfigurations != null) DeregisterValueConfigurationEvents();125 this.valueConfigurations = value;123 if (valueConfigurations != value) { 124 if (valueConfigurations != null) DeregisterValueConfigurationEvents(); 125 valueConfigurations = value; 126 126 KeepActualValueConfigurationIndexConsistent(); 127 if ( this.valueConfigurations != null) RegisterValueConfigurationEvents();128 } 129 } 130 } 131 132 [Storable] 133 private int actualValueConfigurationIndex = 0;127 if (valueConfigurations != null) RegisterValueConfigurationEvents(); 128 } 129 } 130 } 131 132 [Storable] 133 private int actualValueConfigurationIndex; 134 134 public int ActualValueConfigurationIndex { 135 135 get { return actualValueConfigurationIndex; } … … 155 155 get { return isNullable; } 156 156 protected set { 157 if ( this.isNullable != value) {158 this.isNullable = value;157 if (isNullable != value) { 158 isNullable = value; 159 159 } 160 160 } … … 182 182 get { return valuesReadOnly; } 183 183 set { 184 if (value != this.valuesReadOnly) {185 this.valuesReadOnly = value;186 foreach (var vc in this.valueConfigurations) {184 if (valuesReadOnly != value) { 185 valuesReadOnly = value; 186 foreach (var vc in valueConfigurations) { 187 187 vc.ValuesReadOnly = value; 188 188 }
Note: See TracChangeset
for help on using the changeset viewer.