Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12389


Ignore:
Timestamp:
05/11/15 16:40:36 (10 years ago)
Author:
pfleck
Message:

#2379 Add root item of RecursiveDataItem to tree view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BubbleChart/HeuristicLab.Optimization.BubbleChart/3.3/BubbleChartView.cs

    r12388 r12389  
    6666    #region Tree Queries
    6767    private IEnumerable<string> GetAvailableKeys() {
    68       var collector = new List<string>(Content.Data.Keys);
     68      var collector = new List<string>();
    6969      foreach (TreeNode node in treeView.Nodes)
    7070        GetAvailableKeys(node, collector);
     
    8080
    8181    private IEnumerable<RecursiveDataItem> GetAvailableItems() {
    82       var collector = new List<RecursiveDataItem>() { Content };
     82      var collector = new List<RecursiveDataItem>();
    8383      foreach (TreeNode child in treeView.Nodes)
    8484        GetAvailableItems(child, collector);
     
    100100
    101101      if (Content != null) {
    102         foreach (var child in Content.Children)
    103           treeView.Nodes.Add(CreateTreeNode(child));
     102        treeView.Nodes.Add(CreateTreeNode(Content));
    104103      }
    105104
     
    278277    }
    279278    #endregion
    280 
    281 
    282279  }
    283280}
Note: See TracChangeset for help on using the changeset viewer.