/// <summary>
 /// Default ctor
 /// </summary>
 private ViewGroupChildConnector(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
 {
     this.node         = node;
     this.control      = control;
     this.rootDesigner = rootDesigner;
     // Add controls for all children now
     foreach (var childNode in node.Children)
     {
         var childControl = childNode.Accept(ControlBuilder.Instance, rootDesigner);
         control.Add(childControl);
     }
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 private ViewGroupChildConnector(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
 {
     this.node = node;
     this.control = control;
     this.rootDesigner = rootDesigner;
     // Add controls for all children now
     foreach (var childNode in node.Children)
     {
         var childControl = childNode.Accept(ControlBuilder.Instance, rootDesigner);
         control.Add(childControl);
     }
 }
        public static void Connect(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
        {
            var connector = new ViewGroupChildConnector(node, control, rootDesigner);

            node.Children.CollectionChanged += connector.OnChildrenChanged;
        }
 public static void Connect(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
 {
     var connector = new ViewGroupChildConnector(node, control, rootDesigner);
     node.Children.CollectionChanged += connector.OnChildrenChanged;
 }