Last change
on this file since 14501 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 | |
---|
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 | using HeuristicLab.Optimization;
|
---|
13 |
|
---|
14 | namespace 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.