Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ValueConfigurationViews/ValueConfigurationView.cs @ 4839

Last change on this file since 4839 was 4839, checked in by cneumuel, 13 years ago

#1215 worked on MetaOptimization

  • split configurations into ValueConfigurations and ParameterConfigurations
File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Drawing;
5using System.Data;
6using System.Linq;
7using System.Text;
8using HeuristicLab.Core.Views;
9using HeuristicLab.MainForm;
10
11namespace HeuristicLab.Problems.MetaOptimization.Views.ValueConfigurationViews {
12  [View("ValueConfiguration View")]
13  [Content(typeof(IValueConfiguration), false)]
14  [Content(typeof(ValueConfiguration), true)]
15  public partial class ValueConfigurationView : ItemView {
16    public new IValueConfiguration Content {
17      get { return (IValueConfiguration)base.Content; }
18      set { base.Content = value; }
19    }
20
21    public ValueConfigurationView() {
22      InitializeComponent();
23    }
24
25    protected override void OnContentChanged() {
26      base.OnContentChanged();
27      if (Content != null) {
28        this.viewHost.Content = Content.ParameterConfigurations;
29      } else {
30        this.viewHost.Content = null;
31      }
32      SetEnabledStateOfControls();
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.