Changeset 7275
- Timestamp:
- 01/05/12 03:12:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.cs
r7274 r7275 186 186 foreach (TreeNode childNode in CreateAlgorithmChildNodes(algorithm)) { 187 187 node.Nodes.Add(childNode); 188 NamedItem namedItem = childNode.Tag asNamedItem;188 INamedItem namedItem = childNode.Tag as INamedItem; 189 189 if (namedItem != null) { 190 190 if (!treeNodeTagMapping.TryGetValue(namedItem, out nodes)) { … … 607 607 608 608 var treeNode = treeView.SelectedNode; 609 var namedItem = ( NamedItem)treeNode.Tag;609 var namedItem = (INamedItem)treeNode.Tag; 610 610 var optimizer = namedItem as IOptimizer; 611 611 … … 821 821 822 822 foreach (TreeNode childNode in node.Nodes) { 823 NamedItem namedItem = childNode.Tag asNamedItem;823 INamedItem namedItem = childNode.Tag as INamedItem; 824 824 if (namedItem != null) { 825 825 if (!treeNodeTagMapping.TryGetValue(namedItem, out nodes)) {
Note: See TracChangeset
for help on using the changeset viewer.