Changeset 6652
- Timestamp:
- 08/11/11 16:24:49 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionView.cs
r5834 r6652 26 26 27 27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views { 28 [Content(typeof(SymbolicRegressionSolution), true)]28 [Content(typeof(SymbolicRegressionSolution), false)] 29 29 [View("SymbolicRegressionSolution View")] 30 30 public partial class SymbolicRegressionSolutionView : RegressionSolutionView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r6642 r6652 202 202 <Compile Include="Interfaces\IDataAnalysisSolutionEvaluationView.cs" /> 203 203 <Compile Include="MenuItems\CreateEnsembleMenuItem.cs" /> 204 <Compile Include="Solution Views\NamedDataAnalysisSolutionView.cs"> 205 <SubType>UserControl</SubType> 206 </Compile> 207 <Compile Include="Solution Views\NamedDataAnalysisSolutionView.Designer.cs"> 208 <DependentUpon>NamedDataAnalysisSolutionView.cs</DependentUpon> 209 </Compile> 204 210 <Compile Include="Solution Views\RegressionSolutionView.cs"> 205 211 <SubType>UserControl</SubType> -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationSolutionView.cs
r6642 r6652 25 25 namespace HeuristicLab.Problems.DataAnalysis.Views { 26 26 [View("ClassificationSolution View")] 27 [Content(typeof(ClassificationSolutionBase), true)]27 [Content(typeof(ClassificationSolutionBase), false)] 28 28 public partial class ClassificationSolutionView : DataAnalysisSolutionView { 29 29 public ClassificationSolutionView() { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClusteringSolutionView.cs
r6642 r6652 25 25 namespace HeuristicLab.Problems.DataAnalysis.Views { 26 26 [View("ClusteringSolution View")] 27 [Content(typeof(ClusteringSolution), true)]27 [Content(typeof(ClusteringSolution), false)] 28 28 public partial class ClusteringSolutionView : DataAnalysisSolutionView { 29 29 public ClusteringSolutionView() { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r6642 r6652 25 25 using System.Linq; 26 26 using System.Windows.Forms; 27 using HeuristicLab.Core.Views; 27 28 using HeuristicLab.MainForm; 29 using HeuristicLab.Optimization; 28 30 using HeuristicLab.Optimization.Views; 29 31 30 32 namespace HeuristicLab.Problems.DataAnalysis.Views { 31 33 [View("DataAnalysisSolution View")] 32 [Content(typeof(DataAnalysisSolution), true)]33 public partial class DataAnalysisSolutionView : ResultCollectionView{34 [Content(typeof(DataAnalysisSolution), false)] 35 public partial class DataAnalysisSolutionView : NamedItemCollectionView<IResult> { 34 36 public DataAnalysisSolutionView() { 35 37 InitializeComponent(); 38 viewHost.ViewsLabelVisible = false; 39 base.ReadOnly = true; 36 40 } 37 41 … … 58 62 } 59 63 64 protected override IResult CreateItem() { 65 return null; 66 } 67 60 68 protected virtual void AddEvaluationViewTypes() { 61 69 if (Content != null) { … … 68 76 69 77 protected override void itemsListView_DoubleClick(object sender, EventArgs e) { 70 if (itemsListView.SelectedItems.Count == 1 && itemsListView.SelectedItems[0].Tag is Type) { 71 Type viewType = (Type)itemsListView.SelectedItems[0].Tag; 78 if (itemsListView.SelectedItems.Count != 1) return; 79 80 IResult result = itemsListView.SelectedItems[0].Tag as IResult; 81 Type viewType = itemsListView.SelectedItems[0].Tag as Type; 82 if (result != null) { 83 IContentView view = MainFormManager.MainForm.ShowContent(result, typeof(ResultView)); 84 if (view != null) { 85 view.ReadOnly = ReadOnly; 86 view.Locked = Locked; 87 } 88 } else if (viewType != null) { 72 89 MainFormManager.MainForm.ShowContent(Content, viewType); 73 } else 74 base.itemsListView_DoubleClick(sender, e); 90 } 75 91 } 76 92 -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DiscriminantFunctionClassificationSolutionView.cs
r6642 r6652 20 20 #endregion 21 21 22 using System.Windows.Forms; 22 23 23 using HeuristicLab.MainForm; 24 25 24 namespace HeuristicLab.Problems.DataAnalysis.Views { 26 [View(" DiscriminantFunctionClassificationSolution View")]27 [Content(typeof(DiscriminantFunctionClassificationSolutionBase), true)]28 public partial class DiscriminantFunctionClassificationSolutionView : DataAnalysisSolutionView {25 [View("ClassificationSolution View")] 26 [Content(typeof(DiscriminantFunctionClassificationSolutionBase), false)] 27 public partial class DiscriminantFunctionClassificationSolutionView : ClassificationSolutionView { 29 28 public DiscriminantFunctionClassificationSolutionView() { 30 29 InitializeComponent(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/RegressionSolutionView.cs
r6642 r6652 25 25 namespace HeuristicLab.Problems.DataAnalysis.Views { 26 26 [View("RegressionSolution View")] 27 [Content(typeof(RegressionSolutionBase), true)]27 [Content(typeof(RegressionSolutionBase), false)] 28 28 public partial class RegressionSolutionView : DataAnalysisSolutionView { 29 29 public RegressionSolutionView() {
Note: See TracChangeset
for help on using the changeset viewer.