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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Data;
|
---|
5 | using System.Drawing;
|
---|
6 | using System.Text;
|
---|
7 | using System.Windows.Forms;
|
---|
8 | using HeuristicLab.Optimization.Views;
|
---|
9 | using HeuristicLab.MainForm;
|
---|
10 |
|
---|
11 | namespace 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.