Exemple #1
0
 string ISettingsEntryHost.GetDisplayNameForType(Type type)
 {
     foreach (SpecialTypeDescriptor d in SpecialTypeDescriptor.Descriptors)
     {
         if (type == d.type)
         {
             return(d.name);
         }
     }
     return(ambience.GetIntrinsicTypeName(type.FullName));
 }
Exemple #2
0
		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 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;
        }
Exemple #4
0
 public string GetIntrinsicTypeName(string dotNetTypeName)
 {
     return(conv.GetIntrinsicTypeName(dotNetTypeName));
 }