Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/RootValueConfigurationView.cs @ 5103

Last change on this file since 5103 was 5009, checked in by cneumuel, 14 years ago

#1215 worked on metaoptimization

File size: 1.5 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.Core.Views;
11using HeuristicLab.Core;
12
13namespace 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.