protected void cmd_Move(BPaintMoveDirection Par_Direction) { if (ObjectsList.Any()) { foreach (var item in ObjectsList.Where(x => x.Selected)) { switch (Par_Direction) { case BPaintMoveDirection.left: item.Position.PtD += new SizeD(-StepSize, 0); break; case BPaintMoveDirection.right: item.Position.PtD += new SizeD(StepSize, 0); break; case BPaintMoveDirection.up: item.Position.PtD += new SizeD(0, -StepSize); break; case BPaintMoveDirection.down: item.Position.PtD += new SizeD(0, StepSize); break; default: break; } } cmd_RefreshSVG(); } }
protected void cmd_Move(BPaintMoveDirection Par_Direction) { if (ObjectsList.Any()) { foreach (var item in ObjectsList.Where(x => x.Selected)) { switch (Par_Direction) { case BPaintMoveDirection.left: item.PositionChange.x -= StepSize; break; case BPaintMoveDirection.right: item.PositionChange.x += StepSize; break; case BPaintMoveDirection.up: item.PositionChange.y -= StepSize; break; case BPaintMoveDirection.down: item.PositionChange.y += StepSize; break; default: break; } } cmd_RefreshSVG(); } }