Free cookie consent management tool by TermsFeed Policy Generator

source: branches/histogram/HistogramViewTest/Form1.cs @ 6172

Last change on this file since 6172 was 6013, checked in by abeham, 14 years ago

#1465

  • removed AggregatedHistogramHistoryView
  • removed Histogram and HistogramHistory data structures
  • removed HistogramView and HistogramHistoryView, but left the HistogramControl
  • adapted the QualityDistributionAnalyzer to create a DataTable instead
  • added a StoreHistory parameter
  • adapted the temporary test project
File size: 765 bytes
RevLine 
[5961]1using System;
2using System.Windows.Forms;
3using HeuristicLab.Analysis;
4using HeuristicLab.Analysis.Views;
5
6namespace HistogramViewTest {
7  public partial class Form1 : Form {
[6013]8    private DataTableView view;
[5961]9
10    public Form1() {
11      InitializeComponent();
[6013]12      view = new DataTableView();
13      DataTable hist = new DataTable("TestTable");
14      DataRow row = new DataRow("Test");
15      row.VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Histogram;
[5961]16      Random rand = new Random();
17      for (int index = 1; index < 100; index++) {
[6013]18        row.Values.Add(rand.Next(1, 1000));
[5961]19      }
[6013]20      hist.Rows.Add(row);
[5961]21      view.Content = hist;
[6013]22      view.Dock = DockStyle.Fill;
[5961]23      Controls.Add(view);
24    }
25  }
26}
Note: See TracBrowser for help on using the repository browser.