示例#1
0
        private void elementsFinishedMoving(ElementMoveType type)
        {
            foreach (var elem in SelectedElements)
            {
                elem.EndUpdate();
                RenderElement(elem);
            }

            MultiElementEventArgs evargs = new MultiElementEventArgs {
                Elements = SelectedElements
            };

            _ElementsFinishedMoving(evargs);

            if (ElementsMovedNew != null)
            {
                ElementsMovedNew(this, new ElementsChangedTimesEventArgs(m_elemMoveInfo, type));
            }

            m_elemMoveInfo = null;
        }
示例#2
0
        private void elementsFinishedMoving(ElementMoveType type)
        {
            foreach (var elem in SelectedElements)
                elem.EndUpdate();

            endAllDrag();

            MultiElementEventArgs evargs = new MultiElementEventArgs { Elements = SelectedElements };
            _ElementsFinishedMoving(evargs);

            if (ElementsMovedNew != null)
            {
                ElementsMovedNew(this, new ElementsChangedTimesEventArgs(m_elemMoveInfo, type));
            }

            m_elemMoveInfo = null;
        }