Esempio n. 1
0
        public virtual Drawable Add(Drawable drawable)
        {
            if (drawable == null)
            {
                return(null);
            }

            drawable.changeParent(this);
            children.Add(drawable);

            return(drawable);
        }
Esempio n. 2
0
        protected virtual Drawable Add(Drawable drawable)
        {
            if (drawable == null)
            {
                return(null);
            }

            drawable.changeParent(this);

            internalChildren.Add(drawable);

            Invalidate();
            return(drawable);
        }