/// <summary> /// /// </summary> /// <param name="serviceProvider"></param> /// <param name="adaptor"></param> public ConfigurationEditor(SingleHierarchyConfigurationUIHostAdapter adaptor, IServiceProvider serviceProvider) { this.adapter = adaptor; this.serviceProvider = serviceProvider; treeNodeFactory = new TreeNodeFactory(); InitializeComponent(); treeNodeFactory.SetImageContainer(new ConfigurationNodeImageContainer(this.nodeImages)); uiService = this; }
/// <summary> /// /// </summary> /// <param name="configNode"></param> /// <param name="childNodeFactory"></param> public ConfigurationTreeNode(ConfigurationNode configNode, TreeNodeFactory childNodeFactory) : base(configNode.Name) { this.childNodeFactory = childNodeFactory; configurationNode = configNode; this.RegisterEventHandlers(); }