Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ParameterConfigurationView.cs @ 4682

Last change on this file since 4682 was 4525, checked in by cneumuel, 14 years ago

implemented basic crossover operator for ParameterSets. MetaOptimization is now functional on a basic level (Configuration and Crossing only works for IntValue Parameters) (#1215)

File size: 1.5 KB
RevLine 
[4516]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(IParameterConfiguration), true)]
19  public partial class ParameterConfigurationView : 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 IParameterConfiguration Content {
26      get { return (IParameterConfiguration)base.Content; }
27      set { base.Content = value; }
28    }
29
30    public ParameterConfigurationView() {
31      InitializeComponent();
32    }
33
34    protected override void OnContentChanged() {
35      base.OnContentChanged();
36      if (Content != null) {
37        viewHost.Content = Content.Parameter;
38      } else {
39        viewHost.Content = null;
40      }
41    }
42
43    protected override void SetEnabledStateOfControls() {
44      base.SetEnabledStateOfControls();
45    }
46
47    private void optimizeCheckBox_CheckedChanged(object sender, EventArgs e) {
48
49    }
50  }
51}
Note: See TracBrowser for help on using the repository browser.