Exemplo n.º 1
0
        public bool Remove(IChildControl item)
        {
            var rsltSelf = this.children.Remove(item);
            var rsltItem = item.RemoveFromParent(this);

            return(rsltSelf || rsltSelf);
        }
Exemplo n.º 2
0
        public void Add(IChildControl item)
        {
            if (item is null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            item.RemoveFromParent();
            this.children.AddLast(item);
        }