- Timestamp:
- 09/03/13 16:15:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/CheckedMultiOperator.cs
r9838 r9934 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 24 using System.Linq; 23 25 using HeuristicLab.Common; 24 26 using HeuristicLab.Core; 25 using HeuristicLab.Data;26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 … … 55 56 56 57 public override void CollectParameterValues(IDictionary<string, IItem> values) { 57 base.CollectParameterValues(values); 58 foreach (var param in Parameters.OfType<IValueParameter>().Except(OperatorParameters)) { 59 var children = GetCollectedValues(param); 60 foreach (var c in children) { 61 if (String.IsNullOrEmpty(c.Key)) 62 values.Add(param.Name, c.Value); 63 else values.Add(param.Name + "." + c.Key, c.Value); 64 } 65 } 58 66 foreach (var opParam in OperatorParameters) { 59 67 var op = opParam.Value; 60 68 var @checked = Operators.ItemChecked(op); 61 values.Add(opParam.Name + ".Checked", new BoolValue(@checked)); 69 if (!@checked) continue; 70 var children = GetCollectedValues(opParam); 71 foreach (var c in children) { 72 if (String.IsNullOrEmpty(c.Key)) 73 values.Add(opParam.Name, c.Value); 74 else values.Add(opParam.Name + "." + c.Key, c.Value); 75 } 62 76 } 63 77 }
Note: See TracChangeset
for help on using the changeset viewer.