AddChild() public method

public AddChild ( IContainer item ) : void
item IContainer
return void
 public IContainer Process(XmlNode node, Action<UserInterfaceBehaviourEvent, object> eventCallback, out Action<XmlNode, IContainer> processChild)
 {
     var listView = new ListView();
     listView.SelectedItemChanged += (sender, args) =>
     {
         eventCallback(UserInterfaceBehaviourEvent.SelectedItemChanged, listView);
     };
     processChild = (xmlNode, container) =>
     {
         listView.AddChild(container);
     };
     return listView;
 }
        public IContainer Process(XmlNode node, Action <UserInterfaceBehaviourEvent, object> eventCallback, out Action <XmlNode, IContainer> processChild)
        {
            var listView = new ListView();

            listView.SelectedItemChanged += (sender, args) =>
            {
                eventCallback(UserInterfaceBehaviourEvent.SelectedItemChanged, listView);
            };
            processChild = (xmlNode, container) =>
            {
                listView.AddChild(container);
            };
            return(listView);
        }