- Timestamp:
- 10/11/12 17:48:27 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Views
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r8125 r8798 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) { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/NamedDataAnalysisSolutionView.cs
r7259 r8798 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.