Ejemplo n.º 1
0
 public override void RemoveChild(IElement element)
 {
     if (element.IsLocked)
     {
         throw new ElementIsLockedException(element.Name);
     }
     ChildrenList.Remove(element);
 }
Ejemplo n.º 2
0
 internal void ImmediatelyRemoveChild(Object2D child)
 {
     if (IsAlive)
     {
         CoreObject.RemoveChild(child.CoreObject);
         ChildrenList.Remove(child);
     }
 }
Ejemplo n.º 3
0
        public virtual void RemoveChild(TValue value)
        {
            var node = ChildrenList.FirstOrDefault(x => value.Equals(x.Value));

            if (node == null)
            {
                throw new InvalidOperationException(string.Format("Could not find child '{0}'.", value));
            }
            ChildrenList.Remove(node);
        }
Ejemplo n.º 4
0
 public void RemovedChild(Entity e)
 {
     ChildrenList.Remove(e);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Remove a child from this RecursiveTree
 /// </summary>
 /// <param name="child">The child to be removed</param>
 public void RemoveChild(RecursiveTree <V> child)
 {
     try { ChildrenList.Remove(child); }
     catch { throw new Exception("Child is no child of this node!"); }
 }