Changeset 6013 for branches/histogram/HistogramViewTest/Form1.cs
- Timestamp:
- 04/15/11 19:33:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram/HistogramViewTest/Form1.cs
r5961 r6013 6 6 namespace HistogramViewTest { 7 7 public partial class Form1 : Form { 8 private HistogramView view;8 private DataTableView view; 9 9 10 10 public Form1() { 11 11 InitializeComponent(); 12 view = new HistogramView(); 13 Histogram hist = new Histogram(); 12 view = new DataTableView(); 13 DataTable hist = new DataTable("TestTable"); 14 DataRow row = new DataRow("Test"); 15 row.VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Histogram; 14 16 Random rand = new Random(); 15 17 for (int index = 1; index < 100; index++) { 16 hist.Values.Add(rand.Next(1, 1000));18 row.Values.Add(rand.Next(1, 1000)); 17 19 } 20 hist.Rows.Add(row); 18 21 view.Content = hist; 22 view.Dock = DockStyle.Fill; 19 23 Controls.Add(view); 20 24 }
Note: See TracChangeset
for help on using the changeset viewer.