Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/15 10:30:06 (10 years ago)
Author:
mkommend
Message:

#2025: Changed categories for all creatables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.cs

    r12401 r12504  
    9696      foreach (var category in categories) {
    9797        var fullName = category.Key;
    98         var tokens = fullName.Split('#');
     98        var tokens = fullName.Split(new[] { CreatableAttribute.Categories.Splitter }, StringSplitOptions.RemoveEmptyEntries);
    9999        var name = tokens.Last();
    100100        var parents = tokens.Take(tokens.Length - 1);
     
    165165      SelectedType = null;
    166166      typesTreeView.SelectedNode = null;
    167       typesTreeView.CollapseAll();
    168167      UpdateDescription();
     168
     169      foreach (TreeNode node in typesTreeView.Nodes)
     170        node.Expand();
     171      typesTreeView.Nodes[0].EnsureVisible();
    169172    }
    170173
Note: See TracChangeset for help on using the changeset viewer.