Пример #1
0
        public virtual void Clear(bool dispose = true)
        {
            foreach (Drawable t in children)
            {
                if (dispose)
                {
                    t.Dispose();
                }
                t.Parent = null;
            }

            children.Clear();

            Invalidate(Invalidation.ScreenSpaceQuad);
        }
Пример #2
0
        protected void Clear(bool dispose = true)
        {
            foreach (Drawable t in Children)
            {
                if (dispose)
                {
                    t.Dispose();
                }
                t.Parent = null;
            }

            internalChildren.Clear();

            Invalidate();
        }
Пример #3
0
        public virtual void Clear(bool dispose = true)
        {
            if (AddTarget != null && AddTarget != this)
            {
                AddTarget.Clear(dispose);
                return;
            }

            foreach (Drawable t in children)
            {
                if (dispose)
                {
                    t.Dispose();
                }
                t.Parent = null;
            }

            children.Clear();

            Invalidate(Invalidation.Position | Invalidation.SizeInParentSpace);
        }