Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Problems.Knapsack.Views/3.3/KnapsackView.cs @ 3070

Last change on this file since 3070 was 3070, checked in by svonolfe, 14 years ago

Added the Knapsack problem to test the BinaryVector operators (#917)

File size: 1022 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.MainForm;
9
10namespace 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.