Exemplo n.º 1
0
        /// <summary>
        /// Constructs a new <see cref="Element"/> from the given <see cref=" ElementHandle"/> and <see cref="ElementDragAndDropInfo"/>.
        /// </summary>
        /// <param name="elementHandle"></param>
        /// <param name="movabilityInfo"></param>
        public Element(ElementHandle elementHandle, ElementDragAndDropInfo movabilityInfo)
            : this()
        {
            if (elementHandle == null)
            {
                throw new ArgumentNullException("elementHandle");
            }
            if (movabilityInfo == null)
            {
                throw new ArgumentNullException("movabilityInfo");
            }

            _elementHandle      = elementHandle;
            this.MovabilityInfo = movabilityInfo;
        }
Exemplo n.º 2
0
 internal void RemoveMovabilityInfo()
 {
     MovabilityInfo = new ElementDragAndDropInfo();
 }
Exemplo n.º 3
0
        /// <summary>
        /// Constructs a new <see cref="Element"/> from the given <see cref=" ElementHandle"/>, <see cref="ElementVisualizedData"/> and <see cref="ElementDragAndDropInfo"/>.
        /// </summary>
        /// <param name="elementHandle"></param>
        /// <param name="visualData"></param>
        /// <param name="movabilityInfo"></param>
        public Element(ElementHandle elementHandle, ElementVisualizedData visualData, ElementDragAndDropInfo movabilityInfo)
            : this()
        {
            if (elementHandle == null) throw new ArgumentNullException("elementHandle");
            if (visualData == null) throw new ArgumentNullException("visualData");
            if (movabilityInfo == null) throw new ArgumentNullException("movabilityInfo");
            
            _elementHandle = elementHandle;

            this.VisualData = visualData;
            this.MovabilityInfo = movabilityInfo;            
        }
Exemplo n.º 4
0
        /// <summary>
        /// Constructs a new <see cref="Element"/> from the given <see cref=" ElementHandle"/> and <see cref="ElementDragAndDropInfo"/>.
        /// </summary>
        /// <param name="elementHandle"></param>
        /// <param name="movabilityInfo"></param>
        public Element(ElementHandle elementHandle, ElementDragAndDropInfo movabilityInfo)
            : this()
        {
            if (elementHandle == null) throw new ArgumentNullException("elementHandle");
            if (movabilityInfo == null) throw new ArgumentNullException("movabilityInfo");

            _elementHandle = elementHandle;
            this.MovabilityInfo = movabilityInfo;
        }
Exemplo n.º 5
0
 internal void RemoveMovabilityInfo()
 {
     MovabilityInfo = new ElementDragAndDropInfo();
 }
Exemplo n.º 6
0
        /// <summary>
        /// Constructs a new <see cref="Element"/> from the given <see cref=" ElementHandle"/>, <see cref="ElementVisualizedData"/> and <see cref="ElementDragAndDropInfo"/>.
        /// </summary>
        /// <param name="elementHandle"></param>
        /// <param name="visualData"></param>
        /// <param name="movabilityInfo"></param>
        public Element(ElementHandle elementHandle, ElementVisualizedData visualData, ElementDragAndDropInfo movabilityInfo)
            : this()
        {
            if (elementHandle == null)
            {
                throw new ArgumentNullException("elementHandle");
            }
            if (visualData == null)
            {
                throw new ArgumentNullException("visualData");
            }
            if (movabilityInfo == null)
            {
                throw new ArgumentNullException("movabilityInfo");
            }

            _elementHandle = elementHandle;

            this.VisualData     = visualData;
            this.MovabilityInfo = movabilityInfo;
        }