Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/HistogramView.cs @ 10818

Last change on this file since 10818 was 10818, checked in by psteiner, 10 years ago

Persistence of charting congfiguration

File size: 1.1 KB
Line 
1using System;
2using System.Windows.Forms;
3using HeuristicLab.Analysis;
4using HeuristicLab.MainForm;
5
6namespace HeuristicLab.DataPreprocessing.Views {
7
8  [View("Histogram View")]
9  [Content(typeof(HistogramContent), true)]
10  public partial class HistogramView : PreprocessingChartView {
11
12    private const string HISTOGRAM_CHART_TITLE = "Histogram";
13
14    public HistogramView() {
15      InitializeComponent();
16      chartType = DataRowVisualProperties.DataRowChartType.Histogram;
17      chartTitle = HISTOGRAM_CHART_TITLE;
18    }
19
20    public new HistogramContent Content {
21      get { return (HistogramContent)base.Content; }
22      set { base.Content = value; }
23    }
24
25    private void allInOneCheckBox_CheckedChanged(object sender, EventArgs e) {
26      if (allInOneCheckBox.Checked)
27        Content.AllInOneMode = true;
28      else
29        Content.AllInOneMode = false;
30      GenerateChart();
31    }
32
33    protected override void OnContentChanged()
34    {
35      base.OnContentChanged();
36      if (Content != null)
37      {
38        allInOneCheckBox.Checked = Content.AllInOneMode;
39      }
40    }
41
42  }
43}
Note: See TracBrowser for help on using the repository browser.