Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 2655 was 2655, checked in by swagner, 14 years ago

Committing first results of the refactoring of HeuristicLab.Core and related plugins (#95)

File size: 1.3 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Drawing;
5using System.Data;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9using HeuristicLab.MainForm;
10using HeuristicLab.Collections;
11
12namespace HeuristicLab.Core.Views {
13  [Content(typeof(VariableCollection), true)]
14  [Content(typeof(IObservableKeyedCollection<string, Variable>), true)]
15  public partial class VariableCollectionView : NamedItemCollectionView<Variable> {
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>
30    public VariableCollectionView(IObservableKeyedCollection<string, Variable> variableCollection)
31      : this() {
32      NamedItemCollection = variableCollection;
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.