Last change
on this file since 10844 was
10818,
checked in by psteiner, 10 years ago
|
Persistence of charting congfiguration
|
File size:
1.1 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Windows.Forms;
|
---|
3 | using HeuristicLab.Analysis;
|
---|
4 | using HeuristicLab.MainForm;
|
---|
5 |
|
---|
6 | namespace 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.