Exemple #1
0
        public static void MouseRotateObjects <T>(PositionedObjectList <T> listToMove, MovementStyle movementStyle) where T : PositionedObject
        {
            if (movementStyle == MovementStyle.Group)
            {
                PositionedObjectList <T> topParents =
                    listToMove.GetTopParents();

                foreach (T positionedObject in topParents)
                {
                    MouseRotateObject(positionedObject, movementStyle);
                }
            }
            else
            {
                foreach (PositionedObject positionedObject in listToMove)
                {
                    MouseRotateObject(positionedObject, movementStyle);
                }
            }
        }