public bool Remove(IChildControl item) { var rsltSelf = this.children.Remove(item); var rsltItem = item.RemoveFromParent(this); return(rsltSelf || rsltSelf); }
public void Add(IChildControl item) { if (item is null) { throw new ArgumentNullException(nameof(item)); } item.RemoveFromParent(); this.children.AddLast(item); }