Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/DataPreprocessingView.cs @ 10144

Last change on this file since 10144 was 10134, checked in by sbreuer, 11 years ago
  • initial view with hello world
  • make dataset writeable
File size: 1.0 KB
Line 
1using System.Windows.Forms;
2using HeuristicLab.Core.Views;
3using HeuristicLab.MainForm;
4using HeuristicLab.MainForm.WindowsForms;
5using HeuristicLab.Problems.DataAnalysis;
6
7namespace HeuristicLab.DataPreprocessing {
8  [View("Data Preprocessing View")]
9  [Content(typeof(DataAnalysisProblemData), false)]
10  public partial class DataPreprocessingView : ItemView {
11
12    public new DataAnalysisProblemData Content {
13      get { return (DataAnalysisProblemData)base.Content; }
14      set { base.Content = value; }
15    }
16
17    public DataPreprocessingView() {
18      InitializeComponent();
19    }
20
21    protected override void OnContentChanged() {
22      base.OnContentChanged();
23
24
25
26    }
27
28    private void button1_Click(object sender, System.EventArgs e) {
29      DataAnalysisProblemData problemData = Content;
30      Dataset ds = problemData.Dataset;
31      for (int i = 0; i < ds.Columns; i++) {
32        for (int j = 0; j < ds.Rows; j++) {
33          ds.SetValue("1,0", j, i);
34        }
35      }
36
37      MessageBox.Show("Success ;)");
38    }
39  }
40}
Note: See TracBrowser for help on using the repository browser.