- Timestamp:
- 05/05/10 12:44:29 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/CheckedItemCollectionView.cs
r3595 r3628 33 33 namespace HeuristicLab.Core.Views { 34 34 [View("CheckedItemCollection View")] 35 [Content(typeof(ICheckedItemCollection<>), false)]35 [Content(typeof(ICheckedItemCollection<>), true)] 36 36 [Content(typeof(CheckedItemCollection<>), true)] 37 37 public partial class CheckedItemCollectionView<T> : ItemCollectionView<T> where T : class, IItem { -
trunk/sources/HeuristicLab.Core.Views/3.3/CheckedItemListView.cs
r3595 r3628 37 37 [View("CheckedItemList View")] 38 38 [Content(typeof(CheckedItemList<>), true)] 39 [Content(typeof(ICheckedItemList<>), false)]39 [Content(typeof(ICheckedItemList<>), true)] 40 40 public partial class CheckedItemListView<T> : ItemListView<T> where T : class, IItem { 41 41 public new ICheckedItemList<T> Content { -
trunk/sources/HeuristicLab.Core/3.3/Collections/CheckedItemCollection.cs
r3594 r3628 113 113 114 114 /// <summary> 115 /// Creates a ReadOnlyCheckedItemCollection containing the same elements. 116 /// </summary> 117 /// <returns>A new ReadOnlyCheckedItemCollection containing the same elements.</returns> 118 public new ReadOnlyCheckedItemCollection<T> AsReadOnly() { 119 return new ReadOnlyCheckedItemCollection<T>(this); 120 } 121 122 /// <summary> 115 123 /// Raised when the collection of items is reset. 116 124 /// </summary> -
trunk/sources/HeuristicLab.Core/3.3/Collections/CheckedItemList.cs
r3594 r3628 149 149 150 150 /// <summary> 151 /// Creates a ReadOnlyCheckedItemList containing the same elements. 152 /// </summary> 153 /// <returns>A new ReadOnlyCheckedItemList containing the same elements.</returns> 154 public new ReadOnlyCheckedItemList<T> AsReadOnly() { 155 return new ReadOnlyCheckedItemList<T>(this); 156 } 157 158 /// <summary> 151 159 /// Raised after the list has been reset. 152 160 /// </summary> -
trunk/sources/HeuristicLab.Core/3.3/HeuristicLab.Core-3.3.csproj
r3602 r3628 104 104 <Compile Include="Collections\CheckedItemCollection.cs" /> 105 105 <Compile Include="Collections\CheckedItemList.cs" /> 106 <Compile Include="Collections\ReadOnlyCheckedItemCollection.cs" /> 107 <Compile Include="Collections\ReadOnlyCheckedItemList.cs"> 108 <SubType>Code</SubType> 109 </Compile> 106 110 <Compile Include="Collections\ReadOnlyItemDictionary.cs" /> 107 111 <Compile Include="Collections\ItemDictionary.cs" /> -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisProblemData.cs
r3599 r3628 46 46 } 47 47 48 public IValueParameter< CheckedItemList<StringValue>> InputVariablesParameter {49 get { return (IValueParameter< CheckedItemList<StringValue>>)Parameters["InputVariables"]; }48 public IValueParameter<ICheckedItemList<StringValue>> InputVariablesParameter { 49 get { return (IValueParameter<ICheckedItemList<StringValue>>)Parameters["InputVariables"]; } 50 50 } 51 51 … … 85 85 } 86 86 } 87 public CheckedItemList<StringValue> InputVariables {88 get { return ( CheckedItemList<StringValue>)InputVariablesParameter.Value; }87 public ICheckedItemList<StringValue> InputVariables { 88 get { return (ICheckedItemList<StringValue>)InputVariablesParameter.Value; } 89 89 set { 90 90 if (value != InputVariables) { … … 140 140 : base() { 141 141 Parameters.Add(new ValueParameter<Dataset>("Dataset", new Dataset())); 142 Parameters.Add(new ValueParameter< CheckedItemList<StringValue>>("InputVariables", new CheckedItemList<StringValue>()));142 Parameters.Add(new ValueParameter<ICheckedItemList<StringValue>>("InputVariables", new CheckedItemList<StringValue>())); 143 143 Parameters.Add(new ConstrainedValueParameter<StringValue>("TargetVariable")); 144 144 Parameters.Add(new ValueParameter<IntValue>("TrainingSamplesStart", new IntValue())); … … 329 329 ((ConstrainedValueParameter<StringValue>)TargetVariableParameter).ValidValues.Add(variableName); 330 330 TargetVariable = variableNames.First(); 331 InputVariables = new CheckedItemList<StringValue>(variableNames) ;331 InputVariables = new CheckedItemList<StringValue>(variableNames).AsReadOnly(); 332 332 foreach (var variableName in variableNames.Skip(1)) 333 333 InputVariables.SetItemCheckedState(variableName, true);
Note: See TracChangeset
for help on using the changeset viewer.