Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Core.Views/3.3/VariableCollectionView.cs @ 3709

Last change on this file since 3709 was 3566, checked in by mkommend, 15 years ago

removed ctors with contents in all views (ticket #972)

File size: 819 bytes
Line 
1using HeuristicLab.Collections;
2using HeuristicLab.MainForm;
3
4namespace HeuristicLab.Core.Views {
5  [View("VariableCollection View")]
6  [Content(typeof(VariableCollection), true)]
7  [Content(typeof(IKeyedItemCollection<string, IVariable>), false)]
8  public partial class VariableCollectionView : NamedItemCollectionView<IVariable> {
9    /// <summary>
10    /// Initializes a new instance of <see cref="VariablesScopeView"/> with caption "Variables Scope View".
11    /// </summary>
12    public VariableCollectionView() {
13      InitializeComponent();
14      Caption = "VariableCollection";
15      itemsGroupBox.Text = "Variables";
16    }
17
18    protected override IVariable CreateItem() {
19      IVariable item = new Variable();
20      item.Name = GetUniqueName(item.Name);
21      return item;
22    }
23  }
24}
Note: See TracBrowser for help on using the repository browser.