Last change
on this file since 3190 was
3166,
checked in by svonolfe, 15 years ago
|
Renamed Knapsack to KnapsackProblem and KnapsackView to KnapsackProblemView (#917)
|
File size:
1.1 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.MainForm;
|
---|
9 |
|
---|
10 | namespace HeuristicLab.Problems.Knapsack.Views {
|
---|
11 | [View("KnapsackProblem View")]
|
---|
12 | [Content(typeof(KnapsackProblem), true)]
|
---|
13 | public partial class KnapsackProblemView : HeuristicLab.Optimization.Views.ProblemView {
|
---|
14 | public new KnapsackProblem Content {
|
---|
15 | get { return (KnapsackProblem)base.Content; }
|
---|
16 | set { base.Content = value; }
|
---|
17 | }
|
---|
18 |
|
---|
19 | /// <summary>
|
---|
20 | /// Initializes a new instance of <see cref="ItemBaseView"/>.
|
---|
21 | /// </summary>
|
---|
22 | public KnapsackProblemView() {
|
---|
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 KnapsackProblemView(KnapsackProblem content)
|
---|
30 | : this() {
|
---|
31 | Content = content;
|
---|
32 | }
|
---|
33 | }
|
---|
34 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.