public static PropertyEditorSettings GetConfig() { PropertyEditorSettings result = (PropertyEditorSettings)ConfigurationBroker.GetSection("propertyEditorSettings"); if (result == null) result = new PropertyEditorSettings(); return result; }
public static PropertyEditorSettings GetConfig() { PropertyEditorSettings result = (PropertyEditorSettings)ConfigurationBroker.GetSection("propertyEditorSettings"); if (result == null) { result = new PropertyEditorSettings(); } return(result); }
private static Dictionary <string, PropertyEditorBase> GetAllEditors() { Dictionary <string, PropertyEditorBase> result = new Dictionary <string, PropertyEditorBase>(); lock (_GlobalPropertyEditors) { _GlobalPropertyEditors.ForEach(kp => result.Add(kp.Key, kp.Value)); } TypeConfigurationCollection editorTypes = PropertyEditorSettings.GetConfig().Editors; foreach (TypeConfigurationElement typeElem in editorTypes) { PropertyEditorBase editor = (PropertyEditorBase)typeElem.CreateInstance(); if (result.ContainsKey(editor.EditorKey) == false) { result.Add(editor.EditorKey, editor); } } return(result); }