Changeset 16692 for branches/2521_ProblemRefactoring/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessorStarter.cs
- Timestamp:
- 03/18/19 17:24:30 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2521_ProblemRefactoring/HeuristicLab.DataPreprocessing.Views
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.DataPreprocessing.Views/3.4
- Property svn:ignore
-
old new 1 1 ComparisonFilterView.resx 2 2 FilterView.resx 3 *.user
-
- Property svn:ignore
-
branches/2521_ProblemRefactoring/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessorStarter.cs
r12676 r16692 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System.Windows.Forms; 23 using HeuristicLab.Core; 23 24 using HeuristicLab.MainForm; 24 25 using HeuristicLab.Optimization; … … 28 29 namespace HeuristicLab.DataPreprocessing.Views { 29 30 public class DataPreprocessorStarter : IDataPreprocessorStarter { 30 31 31 public void Start(IDataAnalysisProblemData problemData, IContentView currentView) { 32 32 IAlgorithm algorithm; 33 33 IDataAnalysisProblem problem; 34 34 GetMostOuterContent(currentView as Control, out algorithm, out problem); 35 var context = new PreprocessingContext(problemData, algorithm , problem);35 var context = new PreprocessingContext(problemData, algorithm ?? problem ?? problemData as IItem); 36 36 MainFormManager.MainForm.ShowContent(context); 37 37 } … … 42 42 43 43 while (control != null) { 44 IContentViewcontentView = control as IContentView;44 var contentView = control as IContentView; 45 45 if (contentView != null) { 46 46 var newAlgorithm = contentView.Content as IAlgorithm;
Note: See TracChangeset
for help on using the changeset viewer.