Last change
on this file since 2859 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
|
Line | |
---|
1 | using HeuristicLab.Collections;
|
---|
2 | using HeuristicLab.MainForm;
|
---|
3 |
|
---|
4 | namespace HeuristicLab.Core.Views {
|
---|
5 | [Content(typeof(VariableCollection), true)]
|
---|
6 | [Content(typeof(IObservableKeyedCollection<string, IVariable>), false)]
|
---|
7 | public partial class VariableCollectionView : NamedItemCollectionView<IVariable> {
|
---|
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>
|
---|
22 | public VariableCollectionView(IObservableKeyedCollection<string, IVariable> content)
|
---|
23 | : this() {
|
---|
24 | Content = content;
|
---|
25 | }
|
---|
26 |
|
---|
27 | protected override IVariable CreateItem() {
|
---|
28 | IVariable item = new Variable();
|
---|
29 | item.Name = GetUniqueName(item.Name);
|
---|
30 | return item;
|
---|
31 | }
|
---|
32 | }
|
---|
33 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.