Line | |
---|
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.Core.Views;
|
---|
11 | using HeuristicLab.Core;
|
---|
12 |
|
---|
13 | namespace HeuristicLab.Problems.MetaOptimization.Views {
|
---|
14 | /// <summary>
|
---|
15 | /// The visual representation of a <see cref="ParameterConfiguration"/>.
|
---|
16 | /// </summary>
|
---|
17 | [View("ParameterConfiguration View")]
|
---|
18 | [Content(typeof(ParameterConfigurationTree), true)]
|
---|
19 | public partial class RootValueConfigurationView : ItemView {
|
---|
20 | /// <summary>
|
---|
21 | /// Gets or sets the variable to represent visually.
|
---|
22 | /// </summary>
|
---|
23 | /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>.
|
---|
24 | /// No own data storage present.</remarks>
|
---|
25 | public new ParameterConfigurationTree Content {
|
---|
26 | get { return (ParameterConfigurationTree)base.Content; }
|
---|
27 | set { base.Content = value; }
|
---|
28 | }
|
---|
29 |
|
---|
30 | public RootValueConfigurationView() {
|
---|
31 | InitializeComponent();
|
---|
32 | }
|
---|
33 |
|
---|
34 | protected override void OnContentChanged() {
|
---|
35 | base.OnContentChanged();
|
---|
36 | if (Content != null) {
|
---|
37 | listView.Content = Content.ParameterConfigurations;
|
---|
38 | } else {
|
---|
39 | listView.Content = null;
|
---|
40 | }
|
---|
41 | SetEnabledStateOfControls();
|
---|
42 | }
|
---|
43 |
|
---|
44 | protected override void SetEnabledStateOfControls() {
|
---|
45 | base.SetEnabledStateOfControls();
|
---|
46 | }
|
---|
47 |
|
---|
48 |
|
---|
49 | }
|
---|
50 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.