Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/02/10 18:14:37 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • added extension method to pretty print type names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs

    r2694 r2739  
    2828using System.Windows.Forms;
    2929using System.Linq;
     30using HeuristicLab.Common;
    3031using HeuristicLab.PluginInfrastructure;
    3132using HeuristicLab.MainForm;
     
    113114              TreeNode typeNode = new TreeNode();
    114115              string name = ItemAttribute.GetName(type);
    115               typeNode.Text = name != null ? name : type.Name;
     116              typeNode.Text = name != null ? name : type.GetPrettyName();
    116117              typeNode.ImageIndex = 0;
    117118              if (type.IsInterface) typeNode.ImageIndex = 2;
     
    138139        }
    139140        if (typesTreeView.Nodes.Count == 0) {
    140           typesTreeView.Nodes.Add("No types of base type \"" + BaseType.Name + "\" found");
     141          typesTreeView.Nodes.Add("No types of base type \"" + BaseType.GetPrettyName() + "\" found");
    141142          typesTreeView.Enabled = false;
    142143        }
Note: See TracChangeset for help on using the changeset viewer.