Last change
on this file since 3099 was
3070,
checked in by svonolfe, 15 years ago
|
Added the Knapsack problem to test the BinaryVector operators (#917)
|
File size:
1022 bytes
|
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.MainForm;
|
---|
9 |
|
---|
10 | namespace HeuristicLab.Problems.Knapsack.Views {
|
---|
11 | [View("Knapsack View")]
|
---|
12 | [Content(typeof(Knapsack), true)]
|
---|
13 | public partial class KnapsackView : HeuristicLab.Optimization.Views.ProblemView {
|
---|
14 | public new Knapsack Content {
|
---|
15 | get { return (Knapsack)base.Content; }
|
---|
16 | set { base.Content = value; }
|
---|
17 | }
|
---|
18 |
|
---|
19 | /// <summary>
|
---|
20 | /// Initializes a new instance of <see cref="ItemBaseView"/>.
|
---|
21 | /// </summary>
|
---|
22 | public KnapsackView() {
|
---|
23 | InitializeComponent();
|
---|
24 | }
|
---|
25 | /// <summary>
|
---|
26 | /// Intializes a new instance of <see cref="ItemBaseView"/> with the given <paramref name="item"/>.
|
---|
27 | /// </summary>
|
---|
28 | /// <param name="item">The item that should be displayed.</param>
|
---|
29 | public KnapsackView(Knapsack content)
|
---|
30 | : this() {
|
---|
31 | Content = content;
|
---|
32 | }
|
---|
33 | }
|
---|
34 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.