Last change
on this file since 10216 was
10134,
checked in by sbreuer, 11 years ago
|
- initial view with hello world
- make dataset writeable
|
File size:
1.0 KB
|
Rev | Line | |
---|
[10134] | 1 | using System.Windows.Forms;
|
---|
| 2 | using HeuristicLab.Core.Views;
|
---|
| 3 | using HeuristicLab.MainForm;
|
---|
| 4 | using HeuristicLab.MainForm.WindowsForms;
|
---|
| 5 | using HeuristicLab.Problems.DataAnalysis;
|
---|
| 6 |
|
---|
| 7 | namespace 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.