Пример #1
0
        public virtual void AddChild(ViFileNode child)
        {
            if (child == null)
            {
                return;
            }

            this.Children.Add(child);
            child.SetParent(this);
        }
Пример #2
0
        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);
        }