Exemplo n.º 1
0
        /// <summary>
        /// Copy constructor
        /// </summary>
        /// <param name="other"></param>
        public ContainerBase(ContainerBase other)
            : base(other)
        {
            if (other.Background != null)
                Background = (IVisualElement)other.Background.Clone();
            else
                Background = null;

            ElementsDrawMode = other.ElementsDrawMode;
            Padding = other.Padding;
            if (other.Border != null)
                Border = (IBorder)other.Border.Clone();
            else
                Border = null;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Copy constructor
        /// </summary>
        /// <param name="other"></param>
        public ContainerBase(ContainerBase other)
            : base(other)
        {
            if (other.Background != null)
            {
                Background = (IVisualElement)other.Background.Clone();
            }
            else
            {
                Background = null;
            }

            ElementsDrawMode = other.ElementsDrawMode;
            Padding          = other.Padding;
            if (other.Border != null)
            {
                Border = (IBorder)other.Border.Clone();
            }
            else
            {
                Border = null;
            }
        }