Changeset 5665 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
- Timestamp:
- 03/10/11 19:26:58 (14 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/OptimizableView.cs
r5653 r5665 1 1 using System; 2 using System.Linq; 2 3 using HeuristicLab.Core.Views; 3 4 using HeuristicLab.Data; … … 44 45 45 46 if (pc != null) { 46 this.viewHost.Content = ((IParameterConfiguration)Content).ValueConfigurations; 47 } else if(vc != null) { 47 if (pc is SingleValuedParameterConfiguration) { 48 this.viewHost.Content = ((ParameterizedValueConfiguration)pc.ValueConfigurations.Single()).ParameterConfigurations; 49 } else { 50 this.viewHost.Content = pc.ValueConfigurations; 51 } 52 } else if (vc != null) { 48 53 var rvc = Content as RangeValueConfiguration; 49 54 if (rvc != null) { -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ValueConfigurationViews/ValueConfigurationCheckedItemCollectionView.cs
r5654 r5665 52 52 return new NullValueConfiguration(); 53 53 } else if(value is IParameterizedItem) { 54 return new ParameterizedValueConfiguration(value, value.GetType() );54 return new ParameterizedValueConfiguration(value, value.GetType(), true); 55 55 } else { 56 56 return new RangeValueConfiguration(value, value.GetType());
Note: See TracChangeset
for help on using the changeset viewer.