Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Problems.OneMax.Views/3.3/OneMaxView.cs @ 3065

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

Added OneMax problem to test the BinaryVector operators (#916)

File size: 1012 bytes
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("OneMax View")]
13  [Content(typeof(OneMax), true)]
14  public partial class OneMaxView : ProblemView {
15    public new OneMax Content {
16      get { return (OneMax)base.Content; }
17      set { base.Content = value; }
18    }
19
20    /// <summary>
21    /// Initializes a new instance of <see cref="ItemBaseView"/>.
22    /// </summary>
23    public OneMaxView() {
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 OneMaxView(OneMax content)
31      : this() {
32      Content = content;
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.