Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Visualization.Test/LineChartTestForm.cs @ 1002

Last change on this file since 1002 was 985, checked in by bspisic, 16 years ago

#424
Implemented ResetView

File size: 764 bytes
Line 
1using System.Windows.Forms;
2using HeuristicLab.Core;
3
4namespace HeuristicLab.Visualization.Test {
5  public partial class LineChartTestForm : Form {
6    private ChartDataRowsModel model;
7    private IView view;
8
9    public LineChartTestForm() {
10      InitializeComponent();
11
12      model = new ChartDataRowsModel();
13
14     
15      view = model.CreateView();
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    }
26
27    private void btnResetView_Click(object sender, System.EventArgs e) {
28      LineChart lineChart = (LineChart)view;
29      lineChart.ResetView();
30    }
31  }
32}
Note: See TracBrowser for help on using the repository browser.