Esempio 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;
        }
Esempio n. 2
0
 internal void RemoveMovabilityInfo()
 {
     MovabilityInfo = new ElementDragAndDropInfo();
 }
Esempio 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;            
        }
Esempio 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;
        }
Esempio n. 5
0
 internal void RemoveMovabilityInfo()
 {
     MovabilityInfo = new ElementDragAndDropInfo();
 }
Esempio 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;
        }