Changeset 6542 for trunk/sources
- Timestamp:
- 07/07/11 16:36:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.cs
r6539 r6542 170 170 childNode.Remove(); 171 171 } 172 foreach (TreeNode childNode in CreateAlgorithmChildNodes(algorithm)) 172 List<TreeNode> nodes; 173 foreach (TreeNode childNode in CreateAlgorithmChildNodes(algorithm)) { 173 174 node.Nodes.Add(childNode); 175 NamedItem namedItem = childNode.Tag as NamedItem; 176 if (namedItem != null) { 177 if (!treeNodeTagMapping.TryGetValue(namedItem, out nodes)) { 178 nodes = new List<TreeNode>(); 179 treeNodeTagMapping.Add(namedItem, nodes); 180 RegisterNamedItemEvents(namedItem); 181 } 182 nodes.Add(childNode); 183 } 184 } 185 174 186 node.Expand(); 175 187 } … … 859 871 treeView.ImageList.Images.Add(item == null ? HeuristicLab.Common.Resources.VSImageLibrary.Nothing : item.ItemImage); 860 872 treeNode.ImageIndex = treeView.ImageList.Images.Count - 1; 873 treeNode.SelectedImageIndex = treeNode.ImageIndex; 861 874 } 862 875 treeView.Nodes.AddRange(topLevelNodes);
Note: See TracChangeset
for help on using the changeset viewer.