using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using HeuristicLab.MainForm; using HeuristicLab.Core.Views; using HeuristicLab.Core; using HeuristicLab.Optimization; namespace HeuristicLab.Problems.MetaOptimization.Views { /// /// The visual representation of a . /// [View("ParameterConfiguration View")] [Content(typeof(ParameterConfigurationTree), true)] public partial class ParameterConfigurationTreeView : ItemView { /// /// Gets or sets the variable to represent visually. /// /// Uses property of base class . /// No own data storage present. public new ParameterConfigurationTree Content { get { return (ParameterConfigurationTree)base.Content; } set { base.Content = value; } } public ParameterConfigurationTreeView() { InitializeComponent(); } protected override void OnContentChanged() { base.OnContentChanged(); if (Content != null) { listView.Content = Content.ParameterConfigurations; } else { listView.Content = null; } SetEnabledStateOfControls(); } protected override void SetEnabledStateOfControls() { base.SetEnabledStateOfControls(); } } }