Changeset 3393 for trunk/sources/HeuristicLab.Core.Views/3.3
- Timestamp:
- 04/18/10 03:00:00 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Core.Views/3.3
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3362 r3393 34 34 [View("ItemArray View")] 35 35 [Content(typeof(ItemArray<>), true)] 36 [Content(typeof(I ObservableArray<>), false)]36 [Content(typeof(IItemArray<>), false)] 37 37 public partial class ItemArrayView<T> : AsynchronousContentView where T : class, IItem { 38 38 /// <summary> … … 41 41 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 42 42 /// No won data storage present.</remarks> 43 public new I ObservableArray<T> Content {44 get { return (I ObservableArray<T>)base.Content; }43 public new IItemArray<T> Content { 44 get { return (IItemArray<T>)base.Content; } 45 45 set { base.Content = value; } 46 46 } … … 57 57 Caption = "Item Array"; 58 58 } 59 public ItemArrayView(I ObservableArray<T> content)59 public ItemArrayView(IItemArray<T> content) 60 60 : this() { 61 61 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r3362 r3393 31 31 [View("ItemCollection View")] 32 32 [Content(typeof(ItemCollection<>), true)] 33 [Content(typeof(I ObservableCollection<>), false)]33 [Content(typeof(IItemCollection<>), false)] 34 34 public partial class ItemCollectionView<T> : AsynchronousContentView where T : class, IItem { 35 public new I ObservableCollection<T> Content {36 get { return (I ObservableCollection<T>)base.Content; }35 public new IItemCollection<T> Content { 36 get { return (IItemCollection<T>)base.Content; } 37 37 set { base.Content = value; } 38 38 } … … 46 46 Caption = "Item Collection"; 47 47 } 48 public ItemCollectionView(I ObservableCollection<T> content)48 public ItemCollectionView(IItemCollection<T> content) 49 49 : this() { 50 50 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r3362 r3393 34 34 [View("ItemList View")] 35 35 [Content(typeof(ItemList<>), true)] 36 [Content(typeof(I ObservableList<>), false)]36 [Content(typeof(IItemList<>), false)] 37 37 public partial class ItemListView<T> : AsynchronousContentView where T : class, IItem { 38 38 /// <summary> … … 41 41 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 42 42 /// No won data storage present.</remarks> 43 public new I ObservableList<T> Content {44 get { return (I ObservableList<T>)base.Content; }43 public new IItemList<T> Content { 44 get { return (IItemList<T>)base.Content; } 45 45 set { base.Content = value; } 46 46 } … … 57 57 Caption = "Item List"; 58 58 } 59 public ItemListView(I ObservableList<T> content)59 public ItemListView(IItemList<T> content) 60 60 : this() { 61 61 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemSetView.cs
r2917 r3393 28 28 [View("ItemSet View")] 29 29 [Content(typeof(ItemSet<>), true)] 30 [Content(typeof(I ObservableSet<>), false)]30 [Content(typeof(IItemSet<>), false)] 31 31 public partial class ItemSetView<T> : ItemCollectionView<T> where T : class, IItem { 32 public new I ObservableSet<T> Content {33 get { return (I ObservableSet<T>)base.Content; }32 public new IItemSet<T> Content { 33 get { return (IItemSet<T>)base.Content; } 34 34 set { base.Content = value; } 35 35 } … … 45 45 Caption = "Item Set"; 46 46 } 47 public ItemSetView(I ObservableSet<T> content)47 public ItemSetView(IItemSet<T> content) 48 48 : this() { 49 49 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemCollectionView.cs
r3362 r3393 29 29 [Content(typeof(NamedItemCollection<>), true)] 30 30 public partial class NamedItemCollectionView<T> : ItemCollectionView<T> where T : class, INamedItem { 31 public new I ObservableKeyedCollection<string, T> Content {32 get { return (I ObservableKeyedCollection<string, T>)base.Content; }31 public new IKeyedItemCollection<string, T> Content { 32 get { return (IKeyedItemCollection<string, T>)base.Content; } 33 33 set { base.Content = value; } 34 34 } … … 44 44 Caption = "Named Item Collection"; 45 45 } 46 public NamedItemCollectionView(I ObservableKeyedCollection<string, T> content)46 public NamedItemCollectionView(IKeyedItemCollection<string, T> content) 47 47 : this() { 48 48 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorCollectionView.cs
r2924 r3393 6 6 [View("OperatorCollection View")] 7 7 [Content(typeof(OperatorCollection), true)] 8 [Content(typeof(I ObservableCollection<IOperator>), false)]8 [Content(typeof(IItemCollection<IOperator>), false)] 9 9 public partial class OperatorCollectionView : ItemCollectionView<IOperator> { 10 10 protected TypeSelectorDialog typeSelectorDialog; … … 24 24 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 25 25 /// <param name="scope">The scope whose variables should be represented visually.</param> 26 public OperatorCollectionView(I ObservableCollection<IOperator> content)26 public OperatorCollectionView(IItemCollection<IOperator> content) 27 27 : this() { 28 28 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorListView.cs
r3274 r3393 27 27 [View("OperatorList View")] 28 28 [Content(typeof(OperatorList), true)] 29 [Content(typeof(I ObservableList<IOperator>), false)]29 [Content(typeof(IItemList<IOperator>), false)] 30 30 public partial class OperatorListView : ItemListView<IOperator> { 31 31 protected TypeSelectorDialog typeSelectorDialog; … … 45 45 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 46 46 /// <param name="scope">The scope whose variables should be represented visually.</param> 47 public OperatorListView(I ObservableList<IOperator> content)47 public OperatorListView(IItemList<IOperator> content) 48 48 : this() { 49 49 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorSetView.cs
r2924 r3393 6 6 [View("OperatorSet View")] 7 7 [Content(typeof(OperatorSet), true)] 8 [Content(typeof(I ObservableSet<IOperator>), false)]8 [Content(typeof(IItemSet<IOperator>), false)] 9 9 public partial class OperatorSetView : ItemSetView<IOperator> { 10 10 protected TypeSelectorDialog typeSelectorDialog; … … 24 24 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 25 25 /// <param name="scope">The scope whose variables should be represented visually.</param> 26 public OperatorSetView(I ObservableSet<IOperator> content)26 public OperatorSetView(IItemSet<IOperator> content) 27 27 : this() { 28 28 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs
r3362 r3393 37 37 private Dictionary<IValueParameter<IOperator>, List<TreeNode>> opParamNodeTable; 38 38 private Dictionary<IOperator, List<TreeNode>> operatorNodeTable; 39 private Dictionary<I ObservableKeyedCollection<string, IParameter>, IOperator> parametersOperatorTable;39 private Dictionary<IKeyedItemCollection<string, IParameter>, IOperator> parametersOperatorTable; 40 40 41 41 /// <summary> … … 68 68 opParamNodeTable = new Dictionary<IValueParameter<IOperator>, List<TreeNode>>(); 69 69 operatorNodeTable = new Dictionary<IOperator, List<TreeNode>>(); 70 parametersOperatorTable = new Dictionary<I ObservableKeyedCollection<string, IParameter>, IOperator>();70 parametersOperatorTable = new Dictionary<IKeyedItemCollection<string, IParameter>, IOperator>(); 71 71 Caption = "Operator"; 72 72 } … … 291 291 Invoke(new CollectionItemsChangedEventHandler<IParameter>(Parameters_ItemsAdded), sender, e); 292 292 else { 293 I ObservableKeyedCollection<string, IParameter> coll = (IObservableKeyedCollection<string, IParameter>)sender;293 IKeyedItemCollection<string, IParameter> coll = (IKeyedItemCollection<string, IParameter>)sender; 294 294 IOperator op = parametersOperatorTable[coll]; 295 295 AddParameterNodes(op, e.Items); … … 307 307 else { 308 308 RemoveParameterNodes(e.Items); 309 I ObservableKeyedCollection<string, IParameter> coll = (IObservableKeyedCollection<string, IParameter>)sender;309 IKeyedItemCollection<string, IParameter> coll = (IKeyedItemCollection<string, IParameter>)sender; 310 310 IOperator op = parametersOperatorTable[coll]; 311 311 AddParameterNodes(op, e.Items); … … 317 317 else { 318 318 RemoveParameterNodes(e.Items); 319 I ObservableKeyedCollection<string, IParameter> coll = (IObservableKeyedCollection<string, IParameter>)sender;319 IKeyedItemCollection<string, IParameter> coll = (IKeyedItemCollection<string, IParameter>)sender; 320 320 IOperator op = parametersOperatorTable[coll]; 321 321 AddParameterNodes(op, e.Items); -
trunk/sources/HeuristicLab.Core.Views/3.3/ParameterCollectionView.cs
r2924 r3393 28 28 [View("ParameterCollection View")] 29 29 [Content(typeof(ParameterCollection), true)] 30 [Content(typeof(I ObservableKeyedCollection<string, IParameter>), false)]30 [Content(typeof(IKeyedItemCollection<string, IParameter>), false)] 31 31 public partial class ParameterCollectionView : NamedItemCollectionView<IParameter> { 32 32 protected CreateParameterDialog createParameterDialog; … … 45 45 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 46 46 /// <param name="scope">The scope whose variables should be represented visually.</param> 47 public ParameterCollectionView(I ObservableKeyedCollection<string, IParameter> content)47 public ParameterCollectionView(IKeyedItemCollection<string, IParameter> content) 48 48 : this() { 49 49 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeListView.cs
r2924 r3393 5 5 [View("ScopeList View")] 6 6 [Content(typeof(ScopeList), true)] 7 [Content(typeof(I ObservableList<IScope>), false)]7 [Content(typeof(IItemList<IScope>), false)] 8 8 public partial class ScopeListView : ItemListView<IScope> { 9 9 /// <summary> … … 21 21 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 22 22 /// <param name="scope">The scope whose variables should be represented visually.</param> 23 public ScopeListView(I ObservableList<IScope> content)23 public ScopeListView(IItemList<IScope> content) 24 24 : this() { 25 25 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ValueParameterCollectionView.cs
r2924 r3393 28 28 [View("ValueParameterCollection View")] 29 29 [Content(typeof(ValueParameterCollection), true)] 30 [Content(typeof(I ObservableKeyedCollection<string, IValueParameter>), false)]30 [Content(typeof(IKeyedItemCollection<string, IValueParameter>), false)] 31 31 public partial class ValueParameterCollectionView : NamedItemCollectionView<IValueParameter> { 32 32 protected CreateParameterDialog createParameterDialog; … … 45 45 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 46 46 /// <param name="scope">The scope whose variables should be represented visually.</param> 47 public ValueParameterCollectionView(I ObservableKeyedCollection<string, IValueParameter> content)47 public ValueParameterCollectionView(IKeyedItemCollection<string, IValueParameter> content) 48 48 : this() { 49 49 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableCollectionView.cs
r2924 r3393 5 5 [View("VariableCollection View")] 6 6 [Content(typeof(VariableCollection), true)] 7 [Content(typeof(I ObservableKeyedCollection<string, IVariable>), false)]7 [Content(typeof(IKeyedItemCollection<string, IVariable>), false)] 8 8 public partial class VariableCollectionView : NamedItemCollectionView<IVariable> { 9 9 /// <summary> … … 21 21 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 22 22 /// <param name="scope">The scope whose variables should be represented visually.</param> 23 public VariableCollectionView(I ObservableKeyedCollection<string, IVariable> content)23 public VariableCollectionView(IKeyedItemCollection<string, IVariable> content) 24 24 : this() { 25 25 Content = content;
Note: See TracChangeset
for help on using the changeset viewer.