Changeset 10219
- Timestamp:
- 12/11/13 15:56:17 (11 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/DataPreprocessingView.cs
r10134 r10219 3 3 using HeuristicLab.MainForm; 4 4 using HeuristicLab.MainForm.WindowsForms; 5 using HeuristicLab.Problems.DataAnalysis;6 5 7 6 namespace HeuristicLab.DataPreprocessing { 8 7 [View("Data Preprocessing View")] 9 [Content(typeof(DataAnalysisProblemData), false)] 8 [Content(typeof(IPreprocessingContext), false)] 9 [Content(typeof(PreprocessingContext), true)] 10 10 public partial class DataPreprocessingView : ItemView { 11 11 12 public new DataAnalysisProblemDataContent {13 get { return ( DataAnalysisProblemData)base.Content; }12 public new IPreprocessingContext Content { 13 get { return (IPreprocessingContext)base.Content; } 14 14 set { base.Content = value; } 15 15 } … … 21 21 protected override void OnContentChanged() { 22 22 base.OnContentChanged(); 23 24 25 26 23 } 27 24 28 25 private void button1_Click(object sender, System.EventArgs e) { 26 27 28 /* 29 29 DataAnalysisProblemData problemData = Content; 30 30 Dataset ds = problemData.Dataset; … … 36 36 37 37 MessageBox.Show("Success ;)"); 38 */ 38 39 } 39 40 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/HeuristicLab.DataPreprocessing-3.3.csproj
r10193 r10219 84 84 <DependentUpon>DataPreprocessingView.cs</DependentUpon> 85 85 </Compile> 86 <Compile Include="Implementations\PreprocessingContext.cs" /> 86 87 <Compile Include="Implementations\PreprocessingData.cs" /> 87 88 <Compile Include="Implementations\PreprocessingDataManipulation.cs" /> 88 89 <Compile Include="Implementations\StatisticInfo.cs" /> 90 <Compile Include="Interfaces\IPreprocessingContext.cs" /> 89 91 <Compile Include="Interfaces\IStatisticInfo.cs" /> 90 92 <Compile Include="Interfaces\IPreprocessingData.cs" /> -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Views/3.4/Plugin.cs.frame
r10037 r10219 44 44 [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")] 45 45 [PluginDependency("HeuristicLab.Visualization.ChartControlsExtensions", "3.3")] 46 [PluginDependency("HeuristicLab.DataPreprocessing", "3.3")] 46 47 public class HeuristicLabProblemsDataAnalysisViewsPlugin : PluginBase { 47 48 } -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataView.cs
r10217 r10219 104 104 105 105 private void DataPreprocessingButton_Click(object sender, EventArgs e) { 106 // IItem i = GetAlgorithmOrProblemContent(); 107 Type viewType = MainFormManager.GetViewTypes(this.Content.GetType(), true).FirstOrDefault(t => typeof(DataPreprocessingView).IsAssignableFrom(t)); 108 MainFormManager.MainForm.ShowContent(Content, viewType); 106 IItem parentItem = GetAlgorithmOrProblem(); 107 var preprocessingData = new PreprocessingData(Content); 108 109 // TODO: ProblemDataView depends on DataPreprocessing 110 var context = new PreprocessingContext(preprocessingData, parentItem); 111 MainFormManager.MainForm.ShowContent(context); 112 113 //Type viewType = MainFormManager.GetViewTypes(this.Content.GetType(), true).FirstOrDefault(t => typeof(DataPreprocessingView).IsAssignableFrom(t)); 114 //MainFormManager.MainForm.ShowContent(Content, viewType); 109 115 } 110 116 111 private IItem GetAlgorithmOrProblem Content() {117 private IItem GetAlgorithmOrProblem() { 112 118 Control a = this; 113 119 IItem i = null;
Note: See TracChangeset
for help on using the changeset viewer.