Rev | Line | |
---|
[861] | 1 | using System.Windows.Forms;
|
---|
| 2 | using HeuristicLab.Core;
|
---|
| 3 |
|
---|
| 4 | namespace HeuristicLab.Visualization.Test {
|
---|
| 5 | public partial class LineChartTestForm : Form {
|
---|
| 6 | private ChartDataRowsModel model;
|
---|
[985] | 7 | private IView view;
|
---|
[861] | 8 |
|
---|
| 9 | public LineChartTestForm() {
|
---|
| 10 | InitializeComponent();
|
---|
| 11 |
|
---|
| 12 | model = new ChartDataRowsModel();
|
---|
| 13 |
|
---|
[985] | 14 |
|
---|
| 15 | view = model.CreateView();
|
---|
[861] | 16 |
|
---|
| 17 | Control viewControl = (Control)view;
|
---|
| 18 | viewControl.Dock = DockStyle.Fill;
|
---|
| 19 |
|
---|
| 20 | lineChartGroupBox.Controls.Add(viewControl);
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public ChartDataRowsModel Model {
|
---|
| 24 | get { return model; }
|
---|
| 25 | }
|
---|
[985] | 26 |
|
---|
| 27 | private void btnResetView_Click(object sender, System.EventArgs e) {
|
---|
| 28 | LineChart lineChart = (LineChart)view;
|
---|
| 29 | lineChart.ResetView();
|
---|
| 30 | }
|
---|
[861] | 31 | }
|
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.