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 | |
---|
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 HeuristicLab.Core.Views;
|
---|
9 | using HeuristicLab.MainForm;
|
---|
10 |
|
---|
11 | namespace 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.