Rev | Line | |
---|
[4516] | 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 |
|
---|
| 13 | namespace HeuristicLab.Problems.MetaOptimization.Views {
|
---|
| 14 | /// <summary>
|
---|
| 15 | /// The visual representation of a <see cref="ParameterConfiguration"/>.
|
---|
| 16 | /// </summary>
|
---|
| 17 | [View("NumericParameterConfiguration View")]
|
---|
| 18 | [Content(typeof(NumericParameterConfiguration), true)]
|
---|
| 19 | public partial class NumericParameterConfigurationView : NamedItemView {
|
---|
| 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 NumericParameterConfiguration Content {
|
---|
| 26 | get { return (NumericParameterConfiguration)base.Content; }
|
---|
| 27 | set { base.Content = value; }
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | public NumericParameterConfigurationView() {
|
---|
| 31 | InitializeComponent();
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | protected override void OnContentChanged() {
|
---|
| 35 | base.OnContentChanged();
|
---|
| 36 | if (Content != null) {
|
---|
| 37 | itemListView.Content = Content.Ranges;
|
---|
| 38 | } else {
|
---|
| 39 | itemListView.Content = null;
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | protected override void SetEnabledStateOfControls() {
|
---|
| 44 | base.SetEnabledStateOfControls();
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | }
|
---|
| 48 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.