public virtual void AddChild(ViFileNode child) { if (child == null) { return; } this.Children.Add(child); child.SetParent(this); }
public bool RemoveChild(ViFileNode child) { if (child == null) { return(false); } if (child.GetParent() == this) { child.SetParent(null); this.Children.Remove(child); return(true); } return(false); }