string ISettingsEntryHost.GetDisplayNameForType(Type type) { foreach (SpecialTypeDescriptor d in SpecialTypeDescriptor.Descriptors) { if (type == d.type) { return(d.name); } } return(ambience.GetIntrinsicTypeName(type.FullName)); }
public SettingsView() { InitializeComponent(); ambience = AmbienceService.GetCurrentAmbience(); foreach (Type type in defaultAvailableTypes) { types.Add(type); typeNames.Add(ambience.GetIntrinsicTypeName(type.FullName)); } foreach (SpecialTypeDescriptor d in SpecialTypeDescriptor.Descriptors) { types.Add(d.type); typeNames.Add(d.name); } ScopeColumn.DataSource = Enum.GetValues(typeof(SettingScope)); TypeColumn.DataSource = typeNames; }
public string GetIntrinsicTypeName(string dotNetTypeName) { return(conv.GetIntrinsicTypeName(dotNetTypeName)); }