Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Problems.OneMax.Views/3.3/OneMaxProblemView.cs @ 3226

Last change on this file since 3226 was 3164, checked in by svonolfe, 15 years ago

Renamed OneMax to OneMaxProblem and OneMaxView to OneMaxProblemView (#916)

File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Text;
7using System.Windows.Forms;
8using HeuristicLab.Optimization.Views;
9using HeuristicLab.MainForm;
10
11namespace HeuristicLab.Problems.OneMax.Views {
12  [View("OneMaxProblem View")]
13  [Content(typeof(OneMaxProblem), true)]
14  public partial class OneMaxProblemView : ProblemView {
15    public new OneMaxProblem Content {
16      get { return (OneMaxProblem)base.Content; }
17      set { base.Content = value; }
18    }
19
20    /// <summary>
21    /// Initializes a new instance of <see cref="ItemBaseView"/>.
22    /// </summary>
23    public OneMaxProblemView() {
24      InitializeComponent();
25    }
26    /// <summary>
27    /// Intializes a new instance of <see cref="ItemBaseView"/> with the given <paramref name="item"/>.
28    /// </summary>
29    /// <param name="item">The item that should be displayed.</param>
30    public OneMaxProblemView(OneMaxProblem content)
31      : this() {
32      Content = content;
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.