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; }
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; }