using System.Windows.Forms; using HeuristicLab.Core.Views; using HeuristicLab.MainForm; using HeuristicLab.MainForm.WindowsForms; using HeuristicLab.Problems.DataAnalysis; namespace HeuristicLab.DataPreprocessing { [View("Data Preprocessing View")] [Content(typeof(DataAnalysisProblemData), false)] public partial class DataPreprocessingView : ItemView { public new DataAnalysisProblemData Content { get { return (DataAnalysisProblemData)base.Content; } set { base.Content = value; } } public DataPreprocessingView() { InitializeComponent(); } protected override void OnContentChanged() { base.OnContentChanged(); } private void button1_Click(object sender, System.EventArgs e) { DataAnalysisProblemData problemData = Content; Dataset ds = problemData.Dataset; for (int i = 0; i < ds.Columns; i++) { for (int j = 0; j < ds.Rows; j++) { ds.SetValue("1,0", j, i); } } MessageBox.Show("Success ;)"); } } }