Esempio n. 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));
 }
Esempio n. 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;
		}
Esempio n. 3
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;
        }
Esempio n. 4
0
 public string GetIntrinsicTypeName(string dotNetTypeName)
 {
     return(conv.GetIntrinsicTypeName(dotNetTypeName));
 }