Rev | Line | |
---|
[5961] | 1 | using System;
|
---|
| 2 | using System.Windows.Forms;
|
---|
| 3 | using HeuristicLab.Analysis;
|
---|
| 4 | using HeuristicLab.Analysis.Views;
|
---|
| 5 |
|
---|
| 6 | namespace HistogramViewTest {
|
---|
| 7 | public partial class Form1 : Form {
|
---|
| 8 | private HistogramView view;
|
---|
| 9 |
|
---|
| 10 | public Form1() {
|
---|
| 11 | InitializeComponent();
|
---|
| 12 | view = new HistogramView();
|
---|
| 13 | Histogram hist = new Histogram();
|
---|
| 14 | Random rand = new Random();
|
---|
| 15 | for (int index = 1; index < 100; index++) {
|
---|
| 16 | hist.Values.Add(rand.Next(1, 1000));
|
---|
| 17 | }
|
---|
| 18 | view.Content = hist;
|
---|
| 19 | Controls.Add(view);
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.