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