Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ParameterConfigurationTreeView.cs @ 16996

Last change on this file since 16996 was 16996, checked in by gkronber, 5 years ago

#2520 Update plugin dependencies and references for HL.MetaOptimization for new persistence

File size: 1.3 KB
Line 
1using System.Windows.Forms;
2using HeuristicLab.MainForm;
3using HeuristicLab.Core.Views;
4
5namespace HeuristicLab.Problems.MetaOptimization.Views {
6  /// <summary>
7  /// The visual representation of a <see cref="ParameterConfiguration"/>.
8  /// </summary>
9  [View("ParameterConfiguration View")]
10  [Content(typeof(ParameterConfigurationTree), true)]
11  public partial class ParameterConfigurationTreeView : ItemView {
12    /// <summary>
13    /// Gets or sets the variable to represent visually.
14    /// </summary>
15    /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>.
16    /// No own data storage present.</remarks>
17    public new ParameterConfigurationTree Content {
18      get { return (ParameterConfigurationTree)base.Content; }
19      set { base.Content = value; }
20    }
21
22    public ParameterConfigurationTreeView() {
23      InitializeComponent();
24    }
25
26    protected override void OnContentChanged() {
27      base.OnContentChanged();
28      if (Content != null) {
29        listView.Content = Content.ParameterConfigurations;
30      } else {
31        listView.Content = null;
32      }
33      SetEnabledStateOfControls();
34    }
35
36    protected override void SetEnabledStateOfControls() {
37      base.SetEnabledStateOfControls();
38    }
39  }
40}
Note: See TracBrowser for help on using the repository browser.