Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Problems.Knapsack.Views/3.3/KnapsackProblemView.cs @ 3190

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 
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("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.