Changeset 8811 for branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views
- Timestamp:
- 10/16/12 09:44:07 (12 years ago)
- Location:
- branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views
- Files:
-
- 4 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
-
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationEnsembleSolutionView.cs
r8297 r8811 26 26 using HeuristicLab.MainForm; 27 27 using HeuristicLab.PluginInfrastructure; 28 using HeuristicLab.Problems.DataAnalysis.Interfaces;29 28 30 29 namespace HeuristicLab.Problems.DataAnalysis.Views { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r8508 r8811 147 147 } 148 148 149 protected override void RebuildImageList() { 150 itemsListView.SmallImageList.Images.Clear(); 151 foreach (ListViewItem listViewItem in itemsListView.Items) { 152 IResult result = listViewItem.Tag as IResult; 153 Type viewType = listViewItem.Tag as Type; 154 if (result != null) itemsListView.SmallImageList.Images.Add(result.ItemImage); 155 else if (viewType != null && typeof(IDataAnalysisSolutionEvaluationView).IsAssignableFrom(viewType)) 156 itemsListView.SmallImageList.Images.Add(((IDataAnalysisSolutionEvaluationView)Activator.CreateInstance(viewType)).ViewImage); 157 else itemsListView.SmallImageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Nothing); 158 159 listViewItem.ImageIndex = itemsListView.SmallImageList.Images.Count - 1; 160 } 161 } 162 149 163 #region drag and drop 150 164 protected override void itemsListView_DragEnter(object sender, DragEventArgs e) { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/NamedDataAnalysisSolutionView.cs
r7259 r8811 53 53 contentType = Content.GetType(); 54 54 panel.Controls.Clear(); 55 var viewType = MainFormManager.GetViewTypes(Content.GetType(), true). Where(t => typeof(DataAnalysisSolutionView).IsAssignableFrom(t)).FirstOrDefault();55 var viewType = MainFormManager.GetViewTypes(Content.GetType(), true).FirstOrDefault(t => typeof(DataAnalysisSolutionView).IsAssignableFrom(t)); 56 56 if (viewType != null) { 57 view = (DataAnalysisSolutionView)Activator.CreateInstance(viewType); 57 view = (DataAnalysisSolutionView)MainFormManager.CreateView(viewType); 58 view.Locked = Locked; 59 view.ReadOnly = ReadOnly; 58 60 view.Dock = DockStyle.Fill; 59 61 view.Content = Content;
Note: See TracChangeset
for help on using the changeset viewer.