Beispiel #1
0
        /// <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;
        }
Beispiel #2
0
 /// <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();
 }