コード例 #1
0
ファイル: ContainerBase.cs プロジェクト: wsrf2009/KnxUiEditor
        /// <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;
        }
コード例 #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;
            }
        }