Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ParameterConfigurationTreeView.cs @ 9674

Last change on this file since 9674 was 5144, checked in by cneumuel, 14 years ago

#1215

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