00001 using System.Configuration; 00002 00003 namespace N2.Configuration 00004 { 00005 [ConfigurationCollection(typeof(SettingsEditorElement))] 00006 public class SettingsEditorCollection : ConfigurationElementCollection 00007 { 00008 public SettingsEditorCollection() 00009 { 00010 BaseAdd(new SettingsEditorElement("default", "{ManagementUrl}/Content/Settings/SettingsEditor.ascx")); 00011 } 00012 00013 protected override ConfigurationElement CreateNewElement() 00014 { 00015 return new SettingsEditorElement(); 00016 } 00017 00018 protected override object GetElementKey(ConfigurationElement element) 00019 { 00020 return ((SettingsEditorElement) element).Name; 00021 } 00022 } 00023 }