Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7275 for trunk/sources


Ignore:
Timestamp:
01/05/12 03:12:40 (13 years ago)
Author:
swagner
Message:

Fixed exception that was thrown when changing the name of a benchmark algorithm by pressing F2 in the ExperimentTreeView (#1740)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.cs

    r7274 r7275  
    186186        foreach (TreeNode childNode in CreateAlgorithmChildNodes(algorithm)) {
    187187          node.Nodes.Add(childNode);
    188           NamedItem namedItem = childNode.Tag as NamedItem;
     188          INamedItem namedItem = childNode.Tag as INamedItem;
    189189          if (namedItem != null) {
    190190            if (!treeNodeTagMapping.TryGetValue(namedItem, out nodes)) {
     
    607607
    608608      var treeNode = treeView.SelectedNode;
    609       var namedItem = (NamedItem)treeNode.Tag;
     609      var namedItem = (INamedItem)treeNode.Tag;
    610610      var optimizer = namedItem as IOptimizer;
    611611
     
    821821
    822822      foreach (TreeNode childNode in node.Nodes) {
    823         NamedItem namedItem = childNode.Tag as NamedItem;
     823        INamedItem namedItem = childNode.Tag as INamedItem;
    824824        if (namedItem != null) {
    825825          if (!treeNodeTagMapping.TryGetValue(namedItem, out nodes)) {
Note: See TracChangeset for help on using the changeset viewer.