Last change
on this file since 2748 was
2727,
checked in by swagner, 15 years ago
|
Operator architecture refactoring (#95)
- worked on content definitions of views
- corrected bug in cloning of CombinedOperator
|
File size:
1.4 KB
|
Rev | Line | |
---|
[2655] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Drawing;
|
---|
| 5 | using System.Data;
|
---|
| 6 | using System.Linq;
|
---|
| 7 | using System.Text;
|
---|
| 8 | using System.Windows.Forms;
|
---|
| 9 | using HeuristicLab.MainForm;
|
---|
| 10 | using HeuristicLab.Collections;
|
---|
| 11 |
|
---|
| 12 | namespace HeuristicLab.Core.Views {
|
---|
| 13 | [Content(typeof(VariableCollection), true)]
|
---|
[2727] | 14 | [Content(typeof(IObservableKeyedCollection<string, IVariable>), false)]
|
---|
[2687] | 15 | public partial class VariableCollectionView : NamedItemCollectionView<IVariable> {
|
---|
[2655] | 16 | /// <summary>
|
---|
| 17 | /// Initializes a new instance of <see cref="VariablesScopeView"/> with caption "Variables Scope View".
|
---|
| 18 | /// </summary>
|
---|
| 19 | public VariableCollectionView() {
|
---|
| 20 | InitializeComponent();
|
---|
| 21 | Caption = "VariableCollection";
|
---|
| 22 | itemsGroupBox.Text = "&Variables";
|
---|
| 23 | }
|
---|
| 24 | /// <summary>
|
---|
| 25 | /// Initializes a new instance of <see cref="VariablesScopeView"/> with
|
---|
| 26 | /// the given <paramref name="scope"/>.
|
---|
| 27 | /// </summary>
|
---|
| 28 | /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks>
|
---|
| 29 | /// <param name="scope">The scope whose variables should be represented visually.</param>
|
---|
[2727] | 30 | public VariableCollectionView(IObservableKeyedCollection<string, IVariable> content)
|
---|
[2655] | 31 | : this() {
|
---|
[2727] | 32 | Content = content;
|
---|
[2655] | 33 | }
|
---|
[2687] | 34 |
|
---|
| 35 | protected override IVariable CreateItem() {
|
---|
| 36 | IVariable item = new Variable();
|
---|
| 37 | item.Name = GetUniqueName(item.Name);
|
---|
| 38 | return item;
|
---|
| 39 | }
|
---|
[2655] | 40 | }
|
---|
| 41 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.